Tag Mismatch
#1

pawn Код:
if(!PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
How can i fix the tag mismatch on this line?

Thanks
Reply
#2

pawn Код:
if(!PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
Change it to
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
Reply
#3

pawn Код:
if(!(PlayerInfo[playerid][pAdmin] >= 2)) return SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
Reply
#4

nevermind,
pawn Код:
if(PlayerInfo[playerid][pAdmin] <= 1)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
        return 1;
    }
this fixed the problem
Reply
#5

take off that ! at [pAdmin] also <= 2 if you want that alvl is not high enough
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)