Pawno #include problem
#1

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

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

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

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

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
Reply
#6

Код:
./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"
Reply
#7

Update your MySQL plugin & include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)