26.01.2013, 18:48
Quote:
Hi, im sure the correct variable is:
if(PlayerInfo[playerid][pAdmin] != 6) return SendClientMessage(playerid, -1, "You are not an admin"); Replace [pAdmin] with whatever variable is used to define that players admin level |
I Did And i Got Again 4 Errors.
Quote:
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(869) : warning 215: expression has no effect C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(870) : warning 215: expression has no effect C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 017: undefined symbol "AdminVariable" C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : warning 215: expression has no effect C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 001: expected token: ";", but found "]" C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 029: invalid expression, assumed zero C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
PHP код:
pData[playerid][Faction] == factionid;
PHP код:
pData[playerid][Rank] == 6;
PHP код:
if(AdminVariable[playerid] != 6 && pData[playerid][Rank] != 6) return SendClientMessage(playerid, -1,"You are not a high enough admin or you aren't the leader!");