Hier een gedeelte van mijn script dat plotseling niet wilt compilen + foutmeldingen. Nu we dan toch bezig zijn, hoe kan ik zeggen dat slechts Stammetje91 hem kan gebruiken?
Code:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid)== 61) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only Stammetje91 can use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 249) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only SlakX can use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 265) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 266) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 267) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 268) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 269) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 270) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 271) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 272) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "You're not logged in yet! Use /login [password]!");
}
return 1;
}
Foutmeldingen:
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(229) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(230) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(235) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(238) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(239) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(244) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(247) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(248) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(253) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(256) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(257) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(262) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(265) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(266) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(271) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(274) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(275) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(280) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(283) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(284) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(289) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(292) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(293) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(298) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(301) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(302) : error 010: invalid function or declaration
Hier een gedeelte van mijn script dat plotseling niet wilt compilen + foutmeldingen. Nu we dan toch bezig zijn, hoe kan ik zeggen dat slechts Stammetje91 hem kan gebruiken?
Code:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid)== 61) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only Stammetje91 can use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 249) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only SlakX can use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 265) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 266) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 267) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 268) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 269) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 270) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 271) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(GetPlayerSkin(playerid)== 272) {
if(adminlevel[playerid] >= 2)
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only admins are allowed to use this skin!");
}
return 1;
}
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "You're not logged in yet! Use /login [password]!");
}
return 1;
}
Foutmeldingen:
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(229) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(230) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(235) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(238) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(239) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(244) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(247) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(248) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(253) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(256) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(257) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(262) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(265) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(266) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(271) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(274) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(275) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(280) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(283) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(284) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(289) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(292) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(293) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(298) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(301) : error 010: invalid function or declaration
C:\Documents and Settings\Gebruiker\Bureaublad\SAMP\gamemodes\GrandTheftParty.pwn(302) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Bewerkt: door Stammetje91