SA-MP Forums Archive
Pawno #include 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: Pawno #include problem (/showthread.php?tid=553133)



Pawno #include problem - roncohen - 28.12.2014

Hello, I did include it.
/* =========== MySQL ========= */
#include mysql_tquery
#include mysql_escape_string
#include cache_get_data
#include cache_get_field_content
#include mysql_stat
#include mysql_log
#include mysql_connect
#include mysql_errno
#include mysql_close
#include cache_get_row
#include cache_insert_id
#include cache_affected_rows
/* ========== MySQL ========== */
and now it's says Fatal Error 100: cannot read from file: mysql_tquery
Help me plz.


Re: Pawno #include problem - roncohen - 28.12.2014

Help me please, I need to fix it. What to do


Re: Pawno #include problem - iFiras - 28.12.2014

That's not the right way to include MySQL.
Simply, use "#include <mysql>".


Re: Pawno #include problem - roncohen - 28.12.2014

Its doesnt matter, I have other problem, cannot read from file: 'cache_get_data'...
What to do?


Re: Pawno #include problem - Abagail - 28.12.2014

Remove ALL of those includes, and simply put #include a_mysql at the top. See the MySQL plug-in release thread for more info:

https://sampforum.blast.hk/showthread.php?tid=56564


Re: Pawno #include problem - roncohen - 28.12.2014

Код:
./includes/functions.pwn(21321) : warning 202: number of arguments does not match definition
./includes/functions.pwn(21321) : warning 202: number of arguments does not match definition
./includes/commands.pwn(51071) : warning 217: loose indentation
./includes/commands.pwn(51090) : warning 217: loose indentation
./includes/mysql.pwn(194) : warning 213: tag mismatch
./includes/mysql.pwn(194) : warning 213: tag mismatch
./includes/mysql.pwn(4743) : error 017: undefined symbol "mysql_insert_id"
./includes/mysql.pwn(5025) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5058) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5074) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5202) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5251) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5298) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5315) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5905) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(5987) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6043) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6067) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6164) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6265) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6634) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(6678) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(7108) : error 017: undefined symbol "mysql_insert_id"
./includes/mysql.pwn(7174) : error 017: undefined symbol "mysql_free_result"
./includes/mysql.pwn(7201) : error 017: undefined symbol "mysql_insert_id"
./includes/mysql.pwn(7355) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(7496) : error 017: undefined symbol "mysql_affected_rows"
./includes/mysql.pwn(7834) : error 017: undefined symbol "mysql_affected_rows"



Re: Pawno #include problem - iFiras - 29.12.2014

Update your MySQL plugin & include.