SA-MP Forums Archive
mysql problem - OnQueryError with no message - 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: mysql problem - OnQueryError with no message (/showthread.php?tid=663258)



mysql problem - OnQueryError with no message - None1337 - 26.01.2019

So, i have this function

Code:
public OnQueryError( errorid, error[ ], callback[ ], query[ ], connectionHandle )
{
	print( "====================================================================" );
	printf( "Error ID: %d, Error: %s", errorid, error );
	printf( "Callback: %s", callback );
	printf( "gQuery: %s", query );
        printf( "Handle: %d", connectionHandle );
	print( "====================================================================" );
	return 1;
}
And i'm receving something like that:

Code:
[20:51:28] ====================================================================
[20:51:28] Error ID: 4, Error: 
[20:51:28] Callback: 
[20:51:28] gQuery: 
[20:51:28] Handle: 0
[20:51:28] ====================================================================
Why?

EDIT: New i'm getting also like that in server_log

Code:
16:08:44] ====================================================================
[16:08:44] Error ID: 14, Error: 
[16:08:44] Callback:  "!#%$&('–)*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”)
[16:08:44] gQuery: 
[16:08:44] ====================================================================
[16:08:44] ====================================================================
[16:08:44] Error ID: 14, Error: 
[16:08:44] Callback: 
[16:08:44] gQuery:  
[16:08:44] Handle: 0
[16:08:44] ====================================================================
[16:08:44] ====================================================================
[16:08:44] Error ID: 14, Error: 
[16:08:44] Callback: 
[16:08:44] gQuery: 
[16:08:44] Handle: 0
[16:08:44] ====================================================================
and the OnRuntimeError is called:

Code:
[debug] OnRuntimeError(18, true)
[debug] OnRuntimeError(18, true)
[debug] OnRuntimeError(14, true)
[debug] OnRuntimeError(14, true)
[debug] OnRuntimeError(14, true)



Re: mysql problem - OnQueryError with no message - Banditul18 - 26.01.2019

My only suggestion i can give you is to check the the mysql log better. It can give you more details on what errors you have with your queries.

I couldnt find a issue like yours on the github repository of the plugin. Also look like you are using a r3x version which more or less is no longer worked on


Re: mysql problem - OnQueryError with no message - None1337 - 26.01.2019

Quote:
Originally Posted by Banditul18
View Post
My only suggestion i can give you is to check the the mysql log better. It can give you more details on what errors you have with your queries.

I couldnt find a issue like yours on the github repository of the plugin. Also look like you are using a r3x version which more or less is no longer worked on
Here: https://i.gyazo.com/5dddbb4f73e1d4ce...3f2af09e40.png


Re: mysql problem - OnQueryError with no message - Banditul18 - 26.01.2019

Quote:
Originally Posted by None1337
View Post
Well fix them and after that you will not gonna have any other problem. I can't do a spell and fix them