MySQL R33 cache_get
#1

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.
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)