SA-MP Forums Archive
bool problem - 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: bool problem (/showthread.php?tid=485437)



bool problem - Sanady - 04.01.2014

Hello everybody. It`s possible to save information in bool variable? like this one
pawn Код:
mysql_get_field("Music1",tmp); KupljenePesme[playerid][0] = strval(tmp);
I don`t understand what is problem here is error
Код:
D:\SA-MP Server Stuff 2\SA-MP Server\gamemodes\battletestv6.pwn(895) : warning 213: tag mismatch



Re: bool problem - Sanady - 04.01.2014

can anyone helps me..


Re: bool problem - Sanady - 04.01.2014

Sorry about double post does anyone know anything about this problem?


Re: bool problem - Konstantinos - 04.01.2014

booleans are saved as integers in the database so when you retrieve the data, just convert it.

pawn Код:
mysql_get_field("Music1",tmp); KupljenePesme[playerid][0] = (!strval(tmp)) ? false : true;