CMD: Error +Rep
#1

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
Reply
#2

Whatt's the Line 41284

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

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.
Reply
#4

remove the bracket ')' after 1338.

edit: dimi beat me to it
Reply
#5

Thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)