bool mysql to bool pawn variable.
#1

so i have :
pawn Код:
bool:SpawnDance,
I have declared it boolean in mysql.
And here is how i take it from mysql:
pawn Код:
cache_get_row(0, 104, tmp);PlayerInfo[playerid][SpawnDance] = strval(tmp);
and i get this warning :
pawn Код:
shady.pwn(12361) : warning 213: tag mismatch
what should i put instead of
pawn Код:
strval()
to be right and don't get this warning ?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=216730



So:

pawn Код:
PlayerInfo[playerid][SpawnDance] = !!strval(tmp);
I guess.
Reply
#3

It worked ! Thanks !
Reply
#4

No problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)