MySQL Compiling problem - 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 Compiling problem (
/showthread.php?tid=405816)
MySQL Compiling problem - Jarnu - 08.01.2013
When I compile any of my MySQL script it gives me this error
pawn Код:
undefined symbol "mysql_query"
I checked the a_mysql.inc It contains the mysql_query define but still It gives me error, any solution?
(Also tried to replace the a_mysql.inc with the latest one.)
Re: MySQL Compiling problem -
doreto - 08.01.2013
in last version (R7) mysql_query have been replace wich mysql_function_query
mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... )
pawn Код:
mysql_function_query(connectionHandle, "UPDATE `foo` SET `bar` = 1", false, "CustomResponse", "dsf", 1337, "string", 1.5634);
public CustomResponse(integer, string[], Float:float)
{
printf("Query successful executed. Data: %d | %s | %f", integer, string, float);
return 1;
}
Re: MySQL Compiling problem -
RedCrossER - 08.01.2013
It's R7 So you have to use threaded queries.