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)
+--- Thread: Tag mismatch? (/showthread.php?tid=371223)



Tag mismatch? - ValentinLaw - 22.08.2012

This is the code I'm using:

PHP код:
if(pInfo[playerid][pAlive] == false
I get the error:

warning 213: tag mismatch

But when I change FALSE to 1 or something similiar, the error goes away. But I need to keep it as false, any possible solutions?


Re: Tag mismatch? - XStormiest - 22.08.2012

use bool
example
pawn Код:
enum yourenum
{
   bool: pAlive
}
new pInfo[MAX_PLAYERS]][yourenum];



Re: Tag mismatch? - ValentinLaw - 22.08.2012

Edit: Nvm


Re: Tag mismatch? - ValentinLaw - 23.08.2012

Could you help me with the code, I didn't quite get it.


Re: Tag mismatch? - playbox12 - 23.08.2012

Either make pAlive a boolean or do == 0 which is the same as false.