SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: tag mismatch? (/showthread.php?tid=199105)



tag mismatch? - Seven. - 14.12.2010

I am getting this error when compiling :S don't know whats wrong

pawn Код:
new ShowedStealing[MAX_PLAYERS] = false;

/*The error: */if(ShowedStealing[playerid] == false)



Re: tag mismatch? - Mystique - 14.12.2010

Change the false in the error line to 0. False is the same as 0 and true is the same as 1.


Re: tag mismatch? - Seven. - 14.12.2010

Lol, thnx.


Re: tag mismatch? - JaTochNietDan - 14.12.2010

Or you could just initialize it as a boolean.

pawn Код:
new bool:ShowedStealing[MAX_PLAYERS] = false;