01.06.2016, 17:54
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.
So let's say you want to retrieve the data after executing the query in a callback called "OnPlayerDataLoad". That'd be:
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.
pawn Код:
mysql_tquery(connectionHandle, query[], callback[] = "", format[] = "", {Float,_}:...);
pawn Код:
mysql_tquery(mysql, "SELECT ...", "OnPlayerDataLoad", "i", playerid);
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.