Error 017
#1

Why i am getting this kind of error after i compile it

error 017: undefined symbol "ERROR"

the codes is

public OnFilterScriptInit()
{
mysql_log(ERROR | WARNING | INFO);

handle = mysql_connect("host", "user", "password", "database");

if (mysql_errno(handle))
{
print("[mysql]: Failed to connect mysql database.");
}
else
{
mysql_query(handle, "CREATE TABLE IF NOT EXISTS `users` (`id` int(11) NOT NULL AUTO_INCREMENT, `username` text NOT NULL, `password` text NOT NULL, `gender` int(1) NOT NULL DEFAULT '1', `birthdate` text NOT NULL, `skin` int(3) NOT NULL DEFAULT '0', PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;", false);

print("[mysql]: Success connect to mysql database.");
}
return 1;
}

Thanks in advance!
Reply
#2

anyone?
Reply
#3

https://sampwiki.blast.hk/wiki/Undefined_symbol

Give that a read, it should help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)