14.03.2017, 11:29
From your link, i added
under OnFilterScriptInit(). it showed that MySQL Connection has failed. can you tell me why can it happen?
i created Database in wampserver using PhpMyAdmin. i used same Pass, Username, DB name and localhost but still why cant it connect?
Код:
if (g_SQL == MYSQL_INVALID_HANDLE || mysql_errno(g_SQL) != 0) { print("MySQL connection failed. Server is shutting down."); SendRconCommand("exit"); // close the server if there is no connection return 1; } print("MySQL connection is successful.");
i created Database in wampserver using PhpMyAdmin. i used same Pass, Username, DB name and localhost but still why cant it connect?