SA-MP Forums Archive
mysql.inc problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: mysql.inc problem (/showthread.php?tid=568312)



mysql.inc problem - ChroMer - 21.03.2015

i tried to compile my server, then i got this

City Roelplay\pawno\include\mysql.inc(113) : warning 201: redefinition of constant/macro (symbol "mysql_reload(%1)")
City Roelplay\pawno\include\mysql.inc(124) : error 021: symbol already defined: "mysql_connect"
City Roelplay\pawno\include\mysql.inc(124) : error 025: function heading differs from prototype
City Roelplay\pawno\include\mysql.inc(124) : error 025: function heading differs from prototype
City Roelplay\pawno\include\mysql.inc(124) : fatal error 107: too many error messages on one line

And here is the line 113-124 from mysql.inc:

native MySQL:mysql_init(logtype = LOG_ONLY_ERRORS, printerrors = 1);
native mysql_connect(const host[], const user[], const pass[], const db[], MySQL:handle = (MySQL:0), auto_reconnect = 0);
native mysql_close(MySQL:handle = (MySQL:0));
native mysql_refresh(options, MySQL:handle = (MySQL:0));
native mysql_select_db(const db[], MySQL:handle = (MySQL:0));
native mysql_query(const query[], resultid = (-1), spareid = (0), MySQL:handle = (MySQL:0));
native mysql_query_array(const query[], resultid = (-1), {Float,_}:extravars[], MySQL:handle = (MySQL:0));
native mysql_store_result(MySQL:handle = (MySQL:0));
native mysql_free_result(MySQL:handle = (MySQL:0));
native mysql_result_stored(MySQL:handle = (MySQL:0));
native mysql_fetch_field(const fieldname[], dest[], MySQL:handle = (MySQL:0));
native mysql_fetch_field_num(fieldnum, dest[], MySQL:handle = (MySQL:0));