Skipping result saving MYSQL - 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: Skipping result saving MYSQL (
/showthread.php?tid=628858)
Skipping result saving MYSQL -
STONEGOLD - 16.02.2017
PHP код:
[22:16:45] [DEBUG] mysql_format - connection: 1, len: 256, format: "UPDATE `stats` SET `Money`=%d, `Score`=%d, `Deaths`=%d, `Kills`=%d,`Skin`=%d, `Team`=%d,`StoreRobbed`=%d, `StoreRobbedCash`=%d, ..."
[22:16:45] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `stats` SET `Money`=0, `Score`=0, `Deaths`=0, `Kills`=0,`", callback: "(null)", format: "(null)"
[22:16:45] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[22:16:45] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.586 milliseconds
[22:16:45] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
Any idea what does this mean
"[22:16:45] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving"
Respuesta: Skipping result saving MYSQL -
DRIFT_HUNTER - 16.02.2017
Well there is nothing that can be explained more. When you send query you can specify callback function that will be called once MySql server returns result (how many rows were affected, new unique id, or info you have requested, etc...). Sometimes you dont care about such results (for example how many rows were affected) and you dont specify callback. MySql plugin will just skip saving/waiting for results and continue doing its job.