[HELP] to MySQL R5
#1

Hi, so I got MySQL R5 version and I found the script which is a newer version I think because:

Код:
error 035: argument type mismatch (argument 3)
error 017: undefined symbol "mysql_init"
error 017: undefined symbol "mysql_fetch_string"
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
Where is "argument type mismatch (argument 3)" this is a line: mysql_fetch_row(Query, "|");

How can I change this script into MySQL R5 ?
Reply
#2

You can also try to update your plugin to reflect the newest MySQL driver version for the gamemode. There is probably a readme or a topic that specifies what version it was built upon.
Reply
#3

edit this :
pawn Код:
mysql_fetch_row(Query, "|");
to :
pawn Код:
mysql_fetch_row(Query);
and add :
native MySQL:mysql_init(logtype = LOG_ONLY_ERRORS, printerrors = 1);
native mysql_fetch_string(dest[], MySQL:handle = (MySQL:0));
in the mysql include.
Reply
#4

Very good, you helped me, but now:

Код:
\pawno\include\a_mysql.inc(28) : error 017: undefined symbol "LOG_ONLY_ERRORS"
Reply
#5

in the mysql inc: at the top of it : #define LOG_ONLY_ERRORS
Reply
#6

Okay, I did and now:

Код:
\pawno\include\a_mysql.inc(29) : error 029: invalid expression, assumed zero
\pawno\include\a_mysql.inc(29) : error 001: expected token: ";", but found "-identifier-"
Reply
#7

put it near:
#define LOG_ALL in mysql inc
Reply
#8

anyway, the same problem..
Reply
#9

if the error still goes take my mysql include : change it to mysql.inc instead of mysql.txt
Reply
#10

Okay, now this script works fine, but my system with MySQL R5:

Код:
error 017: undefined symbol "mysql_retrieve_row"
 error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_retrieve_row"
 error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_retrieve_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_row_format"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)