SA-MP Forums Archive
Mysql Problem - 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: Mysql Problem (/showthread.php?tid=602703)



Mysql Problem - Devon007 - 11.03.2016

I changed Mysql Version From R6 To R39 but still didnt get what to use instead of those

Код:
mysql_num_rows
And
Код:
mysql_retrieve_row



Re: Mysql Problem - zPain - 11.03.2016

You'll be working only with threaded queries now.

These tutorials will help you:
https://sampforum.blast.hk/showthread.php?tid=337810
https://sampforum.blast.hk/showthread.php?tid=557276


Re: Mysql Problem - czerwony03 - 11.03.2016

Try this:
Код:
new Cache:result = mysql_query(MySQL, "SELECT `id` FROM `players`");
new rows, fields;
cache_get_data(rows, fields);
printf("There are %d rows and %d fields in the current result set (aka cache).", rows, fields);
cache_delete(result);