SA-MP Forums Archive
CMD: Error +Rep - 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: CMD: Error +Rep (/showthread.php?tid=335188)



CMD: Error +Rep - Meinstad - 17.04.2012

pawn Код:
CMD:makeadmin(playerid, params[])  {
    if(PlayerInfo[playerid][pAdmin] >= 1338) || IsPlayerAdmin(playerid))
What is wrong with this?

This is my errors:
pawn Код:
(41284) : error 029: invalid expression, assumed zero
(41284) : error 001: expected token: ";", but found ")"
(41284) : error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line



Re: CMD: Error +Rep - Phyrunx - 17.04.2012

Whatt's the Line 41284

And please post your whole CMD:Makeadmin Command maybe the other code have some problems?


Re: CMD: Error +Rep - [MG]Dimi - 17.04.2012

if(PlayerInfo[playerid][pAdmin] >= 1338) || IsPlayerAdmin(playerid))

Clearly noticable from above, red one doesn't have pair. So use
pawn Код:
if((PlayerInfo[playerid][pAdmin] >= 1338) || IsPlayerAdmin(playerid))
//or
if(PlayerInfo[playerid][pAdmin] >= 1338 || IsPlayerAdmin(playerid))
Have fun.


Re: CMD: Error +Rep - [Diablo] - 17.04.2012

remove the bracket ')' after 1338.

edit: dimi beat me to it


Re: CMD: Error +Rep - Meinstad - 17.04.2012

Thanks guys