mysql_query - 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_query (
/showthread.php?tid=376714)
mysql_query -
jop9888 - 11.09.2012
Hee all,
I'm trying to understand the mysql databases, but i encounter an error with even this function:
mysql_query("INSERT INTO `users` (`username`, `password`) VALUES ('%s', MD5('%s'))", PlayerName(playerid), params);
error: Undefined symbol: mysql_query
I did include the a_mysql include, i searched for it already and i noticed people saying it was because of the new R7 update, could anyone tell me how to fix the error now??
Thanks in advance,
Jop9888
Re: mysql_query - Glint - 11.09.2012
If you are using the latest MySQL plugin which is MySQL R7, mysql_query has been replaced with mysql_function_query, however it is a bit complicated so i suggest you downgrade and use the older version R6-2
https://sampforum.blast.hk/showthread.php?tid=56564
Re: mysql_query -
jop9888 - 11.09.2012
Thanks for the help, i'll downgrade it and discover the functions first