01.07.2018, 00:26
I have created an enum containing CMD permission. but why I get an error?
Whereas above enum that contains CMD permission there is enum pInfo. Can you guys help me?
Whereas above enum that contains CMD permission there is enum pInfo. Can you guys help me?
Код:
undefined symbol "playerid"
PHP код:
enum (<<= 1)
{
CMD_OWNER = PlayerInfo[playerid][pAdmin] == 999999,
CMD_PATRIOT = PlayerInfo[playerid][pAdmin] == 69,
CMD_DEVELOPER = PlayerInfo[playerid][pAdmin] == 12,
CMD_HEADA = PlayerInfo[playerid][pAdmin] == 11,
CMD_ADMIN = PlayerInfo[playerid][pAdmin] == 4,
CMD_JADMIN = PlayerInfo[playerid][pAdmin] == 3,
CMD_MOD = PlayerInfo[playerid][pAdmin] == 2,
CMD_JMOD = PlayerInfo[playerid][pAdmin] == 1,
CMD_MAPPER = PlayerInfo[playerid][pMapper] == 1,
CMD_FMOD = PlayerInfo[playerid][pFMOD] == 1,
CMD_GMOD = PlayerInfo[playerid][pGMOD] == 1,
CMD_SEC = PlayerInfo[playerid][pSecurity] == 1
}
new cmdPerm[MAX_PLAYERS];