Help to update MYSQL to R41 [2 errors]
#1

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(erroriderror[], callback[], query[], connectionHandle) { 
fullcode 1:
PHP Code:
public OnQueryError(erroriderror[], callback[], query[], connectionHandle) {
    
printf("[OnQueryError] errorid %i query %s"erroridquery);
    return 
1;





error 2:
PHP Code:
error 017undefined symbol "mysql_function_query" 
line 2:
PHP Code:
mysql_function_query(ConnectMYSQL,query,true,"r@MySQL_CheckFaction","ds",playeridlocalfname); 
Reply
#2

Replace OnQueryError with this. Works for me.

Code:
public OnQueryError(errorid, const error[], const callback[], const query[], MySQL:handle)
Reply
#3

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.
Reply
#4

For the second: http://forum.sa-mp.com/showpost.php?...01&postcount=3
Reply
#5

Quote:
Originally Posted by TommyB
View Post
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
View Post
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
View Post
I tried it but not work:
PHP Code:
error 035argument type mismatch (argument 3
PHP Code:
mysql_tquery(ConnectMYSQL,query,true,"r@MySQL_CheckFaction","ds",playeridlocalfname); 
Reply
#6

Remove the third argument in mysql_tquery.
Reply
#7

Quote:
Originally Posted by TommyB
View Post
Remove the third argument in mysql_tquery.
Ty again!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)