SA-MP Forums Archive
Why returns void? (mysql) - 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: Why returns void? (mysql) (/showthread.php?tid=545605)



Why returns void? (mysql) - Urukhay - 09.11.2014

PHP код:
new string1[90],string2[90]; 
new 
Cache:sqlselect mysql_query(connect,"SELECT string1,string2 FROM table WHERE ID = '1'");  // filelds: string1 and string2 are strings
cache_get_row(0,0,string1); 
cache_get_row(0,1,string2); 
cache_delete(sqlselect,connect); 
printf("%s %s",string1,string2); // returns void -  "" 
but if field 'string2' in database is integer, then normaly.