Tag mismatch on such a simple function - 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 on such a simple function (
/showthread.php?tid=305296)
Tag mismatch on such a simple function -
Rokzlive - 21.12.2011
Ok, i get a tag mismatch on this:
if(!playerdata[playerid][planelic] == 1)
WTF!
Re: Tag mismatch on such a simple function -
Snowman12 - 21.12.2011
Can I see how you place your enum into an array please?
Re: Tag mismatch on such a simple function -
Rokzlive - 21.12.2011
Im assuming you mean this:
enum playerinfo
{
moneyamount,
scoreamount,
stafflevel,
banned,
banreason,
planelic,
helilic,
buslic,
governmentlic,
courierlic,
trucklic,
dumperlic
}
new playerdata[MAX_PLAYERS][playerinfo];
Re: Tag mismatch on such a simple function -
Mikkel_Pedersen - 21.12.2011
Why do you put the ! in front?
Re: Tag mismatch on such a simple function -
Rokzlive - 21.12.2011
If playerdata[playerid][planelic] does not = 1, then it calls the function i placed in the brackets.
! means if false, no ! means if true.
Re: Tag mismatch on such a simple function -
Mikkel_Pedersen - 21.12.2011
If you want to call it when the variable is NOT 1, then use this:
pawn Код:
if(playerdata[playerid][planelic] != 1)
Re: Tag mismatch on such a simple function -
Rokzlive - 21.12.2011
Ahhh... lol woops.