Error 017 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 017 (
/showthread.php?tid=637380)
Error 017 -
kapwa02 - 13.07.2017
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!
Re: Error 017 -
kapwa02 - 14.07.2017
anyone?
Re: Error 017 -
FreAkeD - 14.07.2017
https://sampwiki.blast.hk/wiki/Undefined_symbol
Give that a read, it should help.