if(PlayerInfo[playerid][pAdmin] < 1 || !IsPlayerAdmin(playerid)) ....
#1

Basically, i just started with the pAdmin stuff, but i keep getting this message ->

pawn Код:
CMD:adminduty(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ADMIN] - You're not a high enough level to use this command!");
//rest of script
Even though i set myself to level 1 or higher, it will keep saying the "You're not a high enough level to use this command!"
But if i log in via the RCON, it will let me use the command.
Wikipedia( https://sampwiki.blast.hk/wiki/Control_Structures ) says the "||" should mean "or"..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)