SA-MP Forums Archive
IsPlayerAdmin help - 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: IsPlayerAdmin help (/showthread.php?tid=334066)



IsPlayerAdmin help - Meinstad - 13.04.2012

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 99998) | IsPlayerAdmin(playerid)
Can someone fix this?


Re: IsPlayerAdmin help - ...: 1 :... - 13.04.2012

You need two ||


Re: IsPlayerAdmin help - ViniBorn - 13.04.2012

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 99998 || IsPlayerAdmin(playerid))



Re: IsPlayerAdmin help - Meinstad - 13.04.2012

fixed.. thanks.


Re: IsPlayerAdmin help - ViniBorn - 13.04.2012

Wrong
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 99998) || IsPlayerAdmin(playerid)
Correct
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 99998 || IsPlayerAdmin(playerid))



Re: IsPlayerAdmin help - Shetch - 13.04.2012

Код:
if((PlayerInfo[playerid][pAdmin] >= 99998) || IsPlayerAdmin(playerid))