Tag mismatch on such a simple function
#1

Ok, i get a tag mismatch on this:

if(!playerdata[playerid][planelic] == 1)

WTF!
Reply
#2

Can I see how you place your enum into an array please?
Reply
#3

Im assuming you mean this:

enum playerinfo
{
moneyamount,
scoreamount,
stafflevel,
banned,
banreason,
planelic,
helilic,
buslic,
governmentlic,
courierlic,
trucklic,
dumperlic
}
new playerdata[MAX_PLAYERS][playerinfo];
Reply
#4

Why do you put the ! in front?
Reply
#5

If playerdata[playerid][planelic] does not = 1, then it calls the function i placed in the brackets.

! means if false, no ! means if true.
Reply
#6

If you want to call it when the variable is NOT 1, then use this:
pawn Код:
if(playerdata[playerid][planelic] != 1)
Reply
#7

Ahhh... lol woops.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)