Help with MySQL - 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 with MySQL (
/showthread.php?tid=355524)
Help with MySQL -
ivanVU - 30.06.2012
I've started to learn MySQL today, i worked with this tutorial
https://sampforum.blast.hk/showthread.php?tid=160971 .
I made db,tables and other things. I compiled it and there weren't errors or warnings, i downloaded R7 update of MySQL, and pawno throw's me errors :
Код:
\mysql.pwn(369) : error 017: undefined symbol "mysql_query"
\mysql.pwn(393) : error 017: undefined symbol "mysql_query"
\mysql.pwn(434) : error 017: undefined symbol "mysql_query"
A friend of mine told me that i have to replace
mysql_query with
mysql_function_query, and i don't know how to do that.
I have this
Код:
new string[128];
format(string, sizeof(string), "SELECT * FROM Korisnici WHERE Ime = '%s'", account);
mysql_function_query(string);
I have 4 query's for now, can anyone show me only one, and i'll try to do others..
Thank you!
Re: Help with MySQL -
marquezsanchez - 30.06.2012
mysql_function_query(1, yourQuery, false, "", "");
do like that if you dont use callback system
Re: Help with MySQL -
CoaPsyFactor - 30.06.2012
if you use MySQL R7 then you must have all 4 parameters for mysql_query, look at a_mysql include file
Re: Help with MySQL -
Calabresi - 30.06.2012
You need to download R6 version of MySQL plugin, your problem will be solved.
Re: Help with MySQL -
CoaPsyFactor - 30.06.2012
Quote:
Originally Posted by Calabresi
You need to download R6 version of MySQL plugin, your problem will be solved.
|
Yes, R6 is from some reason much better than R7