Help to update MYSQL to R41 [2 errors] - 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: Help to update MYSQL to R41 [2 errors] (
/showthread.php?tid=620253)
Help to update MYSQL to R41 [2 errors] -
gmstrikker - 28.10.2016
I trying to update my mysql.inc to last version, i had a lot problems, all i solved looking on wiki/forum
But i got only 2 that i cant fix, anyone could help me?
error 1:
PHP Code:
error 025: function heading differs from prototype
line 1:
PHP Code:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle) {
fullcode 1:
PHP Code:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle) {
printf("[OnQueryError] errorid %i query %s", errorid, query);
return 1;
}
error 2:
PHP Code:
error 017: undefined symbol "mysql_function_query"
line 2:
PHP Code:
mysql_function_query(ConnectMYSQL,query,true,"r@MySQL_CheckFaction","ds",playerid, localfname);
Re: Help to update MYSQL to R41 [2 errors] -
TommyB - 28.10.2016
Replace OnQueryError with this. Works for me.
Code:
public OnQueryError(errorid, const error[], const callback[], const query[], MySQL:handle)
Re: Help to update MYSQL to R41 [2 errors] -
DTV - 28.10.2016
As far as the second error goes, I think that's just a deprecated/removed function. From what it looks like, you could try replacing it with mysql_tquery, but I'm not sure as I've never seen it before.
Re: Help to update MYSQL to R41 [2 errors] -
Konstantinos - 28.10.2016
For the second:
http://forum.sa-mp.com/showpost.php?...01&postcount=3
Re: Help to update MYSQL to R41 [2 errors] -
gmstrikker - 28.10.2016
Quote:
Originally Posted by TommyB
Replace OnQueryError with this. Works for me.
Code:
public OnQueryError(errorid, const error[], const callback[], const query[], MySQL:handle)
|
Ty you! +Rep!
Quote:
Originally Posted by DTV
As far as the second error goes, I think that's just a deprecated/removed function. From what it looks like, you could try replacing it with mysql_tquery, but I'm not sure as I've never seen it before.
|
Quote:
Originally Posted by Konstantinos
|
I tried it but not work:
PHP Code:
error 035: argument type mismatch (argument 3)
PHP Code:
mysql_tquery(ConnectMYSQL,query,true,"r@MySQL_CheckFaction","ds",playerid, localfname);
Re: Help to update MYSQL to R41 [2 errors] -
TommyB - 28.10.2016
Remove the third argument in mysql_tquery.
Re: Help to update MYSQL to R41 [2 errors] -
gmstrikker - 28.10.2016
Quote:
Originally Posted by TommyB
Remove the third argument in mysql_tquery.
|
Ty again!