30.04.2015, 14:36
Hello guys.
When I run samp-server.exe
I see this error:
Here is the OnGameModeInit:
Help!
When I run samp-server.exe
I see this error:
Код:
[MySQL] Error <0>: Failed to connect. Can't connect to MySQL server on 'mysql1.000webhost.com' <10060>
Код:
new MySQL:connect; public OnGameModeInit() { connection = mysql_init(LOG_ONLY_ERRORS, 1); mysql_connect(mysql_host, mysql_user, mysql_password, mysql_database, connection, 1); if(connection) //checks if the database is successfully connected { new dest[200]; mysql_stat(dest); // display the mysql database statistics. printf(dest); printf(">> MySQL connection successfully initialized"); // if it is connected it will display this line, if not then it wont display anything. } SetGameModeText("Team Deathmatch"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; }