SA-MP Forums Archive
OnQueryError - 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: OnQueryError (/showthread.php?tid=504909)



OnQueryError - audriuxxx - 06.04.2014

Hi,

I want to ask.

Why this callback OnQueryError, is not called? i have made him like that:

Code:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
	printf("Query: %s, callback: %s, connectionhandle: %d, error:%s",query,callback,connectionHandle,error);
	return 1;
}
This information have to be printed in server.log right? but there is nothing.

I use latest blueG mysql plugin, where problem when OnQueryError was not called, now fixed.

Code:
[ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '35773''' at line 1
Because this error in mysql_log don't say my anything, i have a lot of queries, different in my gamemod'e anywhere.


Re: OnQueryError - audriuxxx - 06.04.2014

UP THREAD


Re: OnQueryError - audriuxxx - 06.04.2014

Sorry that am bumping this thread, but i really need help with this.


Re: OnQueryError - iZN - 06.04.2014

Enable HTML log, and open that HTML log. You can see bad queries highlighted as RED and ORANGE for warning. You can easily find out which query is having issues.

pawn Code:
mysql_log(LOG_ALL, LOG_TYPE_HTML);