18.01.2019, 06:17
In addition to those listed below, the compiler accuses of error, when I put something related to MySQL, however I have already updated the plugin and necessary files, I have put the include, but still continues to give error when compiling, including the errors below.
Errors:
PHP Code:
forward ConnectMySQL();
public ConnectMySQL()
{
new MySQLOpt: option_id = mysql_init_options();
mysql_set_option(option_id, AUTO_RECONNECT, true);
dbTop = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB, option_id);
if(dbTop == MYSQL_INVALID_HANDLE || mysql_errno(dbTop) != 0)
{
print("=================== MYSQL CONNECTION ===================");
print("[CONNECTION ERROR] Error connecting to Database.");
print("=================== MYSQL CONNECTION ===================");
SendRconCommand("exit");
}
print("=================== MYSQL CONNECTION ===================");
print("[CONNECTION ACCEPT] Connected Database.");
print("=================== MYSQL CONNECTION ===================");
return 1;
}
Code:
error 017: undefined symbol "mysql_init_options" error 017: undefined symbol "mysql_set_option"