mysql_tquery - No callback specified, skipping result saving
#2

It's neither an error, nor a warning. As you have enabled debug mode, it just says that the mysql_tquery hasn't a callback specified which in case of INSERT, UPDATE or DELETE would be fine but on SELECT you must always specify a callback.

pawn Код:
mysql_tquery(connectionHandle, query[], callback[] = "", format[] = "", {Float,_}:...);
So let's say you want to retrieve the data after executing the query in a callback called "OnPlayerDataLoad". That'd be:
pawn Код:
mysql_tquery(mysql, "SELECT ...", "OnPlayerDataLoad", "i", playerid);
which the callback has one parameter and that is an integer. Calling the cache functions directly without an active cache or not to the callback specified will give no active cache warning.

Here's an example script to take a look at, if you are interested: https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn

One last note, using debug log will slow down the queries and honestly you do not needed at all. Don't call mysql_log so by default errors and warnings will be written in a file - that's all you need.
Reply


Messages In This Thread
mysql_tquery - No callback specified, skipping result saving - by Jonesy96 - 01.06.2016, 17:45
Re: mysql_tquery - No callback specified, skipping result saving - by Konstantinos - 01.06.2016, 17:54
Re: mysql_tquery - No callback specified, skipping result saving - by Misiur - 01.06.2016, 17:57
Re: mysql_tquery - No callback specified, skipping result saving - by Jonesy96 - 01.06.2016, 18:45

Forum Jump:


Users browsing this thread: 2 Guest(s)