Help with MySQL
#1

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!
Reply
#2

mysql_function_query(1, yourQuery, false, "", "");

do like that if you dont use callback system
Reply
#3

if you use MySQL R7 then you must have all 4 parameters for mysql_query, look at a_mysql include file
Reply
#4

You need to download R6 version of MySQL plugin, your problem will be solved.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)