PDA

View Full Version : bool mysql to bool pawn variable.


shady001
08/03/2013, 03:41 PM
so i have :

bool:SpawnDance,


I have declared it boolean in mysql.
And here is how i take it from mysql:

cache_get_row(0, 104, tmp);PlayerInfo[playerid][SpawnDance] = strval(tmp);


and i get this warning :

shady.pwn(12361) : warning 213: tag mismatch


what should i put instead of strval() to be right and don't get this warning ?

MP2
08/03/2013, 04:01 PM
http://forum.sa-mp.com/showthread.php?t=216730

http://puu.sh/2ebbt.jpg

So:


PlayerInfo[playerid][SpawnDance] = !!strval(tmp);

I guess.

shady001
08/03/2013, 04:16 PM
It worked ! Thanks !

MP2
08/03/2013, 04:46 PM
No problem.