Tag Mismatch - 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: Tag Mismatch (
/showthread.php?tid=322816)
Tag Mismatch -
lewismichaelbbc - 03.03.2012
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
Re: Tag Mismatch -
Konstantinos - 03.03.2012
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");
Re: Tag Mismatch -
DarkScripter - 03.03.2012
pawn Код:
if(!(PlayerInfo[playerid][pAdmin] >= 2)) return SendClientMessage(playerid,COLOR_YELLOW,"Your admin level is not high enough to use this command");
Re: Tag Mismatch -
lewismichaelbbc - 03.03.2012
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
Re: Tag Mismatch -
ikey07 - 03.03.2012
take off that ! at [pAdmin] also <= 2 if you want that alvl is not high enough