undefined symbol "mysql"
#1

For some reason am randomly getting undefined symbol "mysql" on this line.

it's showing on both of them.
Код:
mysql = mysql_connect(HOST, USER, DATABASE, PASSWORD);
if(mysql_errno(mysql) != 0) print("Could not connect to database!");
Reply
#2

Where did you define a mysql variable?
Reply
#3

LOL am such a noob fixed it it was the static i placed it under ongamemodeinit by mistake.

Such a pointless post.
Reply
#4

Yup, you are missing "new mysql;" in your script.
This will be good:
Код:
// Mysql
#define HOST "localhost"
#define USER "root"
#define DATABASE "123"
#define PASSWORD "Beta"

new mysql;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)