? - 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: ? (
/showthread.php?tid=651231)
? -
C5Perfect - 16.03.2018
strval for numbers, floatstr for floats.. what should I use for text?
PHP код:
mysql_fetch_field_row(savingstring, "ID"); HouseInfo[i][X] = strval(savingstring);
mysql_fetch_field_row(savingstring, "X"); HouseInfo[i][X] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Y"); HouseInfo[i][Y] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Z"); HouseInfo[i][Z] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Name"); HouseInfo[i][Name] = ????(savingstring);
Re: ? -
iKarim - 16.03.2018
In this case I'd say use strcat.
PHP код:
mysql_fetch_field_row(savingstring, "Name");
strcat(HouseInfo[i][Name], savingstring);
I still don't support the idea of using an old mysql plugin though!
Re: ? -
Nero_3D - 16.03.2018
Nothing, put it directly in mysql_fetch_field_row
PHP код:
mysql_fetch_field_row(HouseInfo[i][Name], "Name");
Re: ? -
Sithis - 16.03.2018
Go update to plugin version 33+, and use
https://sampwiki.blast.hk/wiki/MySQL/R33..._get_row_float.
Re: ? -
C5Perfect - 16.03.2018
Alright alright alright, updating it xD