error 001/029 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 001/029 (
/showthread.php?tid=557704)
error 001/029 -
Ejected - 14.01.2015
pawn Код:
{
if(Player[playerid][AdminLevel] <= pClicked[playerid][AdminLevel]) return SendClientMessage(playerid, WHITE, "You can't kick someone with a higher admin level then you."); //line 8757
new string[128];
format(string, sizeof(string), "Admin %s has kicked %s through the admin access panel.", RemoveUnderScore(playerid), RemoveUnderScore(pClicked[playerid]));
SendClientMessageToAll(RED, string);
SaveStats(pClicked[playerid]);
Kick(pClicked[playerid]);
}
Код:
test.pwn(8757) : error 001: expected token: ")", but found "["
test.pwn(8757) : error 029: invalid expression, assumed zero
test.pwn(8757) : warning 215: expression has no effect
test.pwn(8757) : error 001: expected token: ";", but found "]"
test.pwn(8757) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: error 001/029 -
UltraScripter - 14.01.2015
try This :
pawn Код:
if(Player[playerid][AdminLevel] =< pClicked[playerid][AdminLevel]) return SendClientMessage(playerid, WHITE, "You can't kick someone with a higher admin level then you."); //line 8757
Re: error 001/029 -
Schneider - 14.01.2015
@UltraScripter: Are you serious? -.- There's nothing wrong with his "<=" and "=<" is invalid. Just read the error-message.
@Ejected: Change in that line "pClicked[playerid][AdminLevel]" to:
pawn Код:
Player[pClicked][AdminLevel]