30.05.2018, 13:17
Quote:
As you can see in your logs, MYSQL connection is not successful. Show me your SQL defines and mysql_connect line.
|
Код:
//=============================// new MySQLOpt: option_id = mysql_init_options(); mysql_set_option(option_id, AUTO_RECONNECT, true); g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, option_id); if (g_SQL == MYSQL_INVALID_HANDLE || mysql_errno(g_SQL) != 0) { print("MySQL connection failed. Server is shutting down."); print("[House System] Can't connect to MySQL."); print(" [Business System] Can't connect to MySQL. (Error #%d)"); SendRconCommand("exit"); return 1; } print("MySQL connection is successful."); print("[HOUSE]MySQL connection is successful."); print("[BUSINESS]MySQL connection is successful."); print("\nThis Roleplay Gamemode is made by"); print("====MaulaSufa===="); print("Welcome to MSRP"); print("\n");