#1

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); 
Reply
#2

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!
Reply
#3

Nothing, put it directly in mysql_fetch_field_row

PHP код:
mysql_fetch_field_row(HouseInfo[i][Name], "Name"); 
Reply
#4

Go update to plugin version 33+, and use https://sampwiki.blast.hk/wiki/MySQL/R33..._get_row_float.
Reply
#5

Alright alright alright, updating it xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)