MySQL R33 cache_get - 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 R33 cache_get (
/showthread.php?tid=562494)
MySQL R33 cache_get -
mike_1 - 09.02.2015
pawn Код:
mysql_tquery(mysql,"SELECT * FROM userstats","","");
pawn Код:
new rows,fields;
cache_get_data(rows,fields);
When executing a query with this format cache_get_data or any other cache won't work.
I am trying to execute the query without having to call a whole function to process the result. I just want the result to be processed right under the query.
Here is the log message:
Код:
[22:09:34] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
Is there anyway to do this?
It looks like leaving blank the function call does not work according to the log message.
Re: MySQL R33 cache_get -
HazardouS - 09.02.2015
Cached queries have to use callbacks to process the results, there is no other way. I mean, you can search the inline method, but that uses callbacks too.
This is a tutorial about y_inline:
https://sampforum.blast.hk/showthread.php?tid=548986