19.08.2016, 08:36
I doubt the problem is with the plugin, it is most likely a result of your code. Could you please show the code that precedes what you have shown above and also your LoadVeh code.
This is my code for connecting to MySQL database, if it is any help..
This is my code for connecting to MySQL database, if it is any help..
Код:
ConnectDB()
{
mysql_option(LOG_TRUNCATE_DATA, false);
mysql_log(LOG_ALL, LOG_TYPE_TEXT);
SQL_HANDLE_MAIN = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD, SQL_HOSTPORT, SQL_AUTORECO);
if(mysql_errno(SQL_HANDLE_MAIN) != 0)
{
print("\n----------------------------------------------------");
print("[ERROR] Cannot establish connection to SQL database!");
printf("[MYSQL] ERROR CODE: %d", mysql_errno(SQL_HANDLE_MAIN));
print("----------------------------------------------------");
global_EssentialServicesStatus = false;
}
else
{
print("[MYSQL] Connection to SQL database established succesfully!");
}
return 1;
}

