I have problems about MySQL Function - 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: I have problems about MySQL Function (
/showthread.php?tid=540519)
I have problems about MySQL Function -
Galletziz - 05.10.2014
Solved.
Re: I have problems about MySQL Function -
HyperZ - 05.10.2014
Quote:
Originally Posted by Galletziz
pawn Код:
printf("Your character is:%s",u_info[playerid][allineamento]); // RESULT IS:
|
The character(gm_uccisioni) is an integer, isn't it? And you're printing it as a string.
Re: I have problems about MySQL Function -
HyperZ - 05.10.2014
OMG Double post! Remove this please!
Re: I have problems about MySQL Function -
Galletziz - 05.10.2014
Quote:
Originally Posted by HyperZ
The character(gm_uccisioni) is an integer, isn't it? And you're printing it as a string.
|
gm_uccisioni is an integer, and i can retrive it. But i can't retrive a string from gm_allineamento.
pawn Код:
cache_get_field_content(0,"gm_allineamento",u_info[playerid][allineamento]);
printf("%s",u_info[playerid][allineamento]); // RESULT IS NULL.. :\