[HELP] to MySQL R5 - 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] to MySQL R5 (
/showthread.php?tid=510749)
[HELP] to MySQL R5 -
V4at - 02.05.2014
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 ?
Re: [HELP] to MySQL R5 -
mamorunl - 02.05.2014
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.
Re: [HELP] to MySQL R5 -
Eth - 02.05.2014
edit this :
pawn Код:
mysql_fetch_row(Query, "|");
to :
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.
Re: [HELP] to MySQL R5 -
V4at - 02.05.2014
Very good, you helped me, but now:
Код:
\pawno\include\a_mysql.inc(28) : error 017: undefined symbol "LOG_ONLY_ERRORS"
Re: [HELP] to MySQL R5 -
Eth - 02.05.2014
in the mysql inc: at the top of it : #define LOG_ONLY_ERRORS
Re: [HELP] to MySQL R5 -
V4at - 02.05.2014
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-"
Re: [HELP] to MySQL R5 -
Eth - 02.05.2014
put it near:
#define LOG_ALL in mysql inc
Re: [HELP] to MySQL R5 -
V4at - 02.05.2014
anyway, the same problem..
Re: [HELP] to MySQL R5 -
Eth - 02.05.2014
if the error still goes take my mysql include : change it to mysql.inc instead of mysql.txt
Re: [HELP] to MySQL R5 -
V4at - 02.05.2014
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"