MySQL error
#1

Hello guys.
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>
Here is the OnGameModeInit:
Код:
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;
}
Help!
Reply


Messages In This Thread
MySQL error - by aCloudy - 30.04.2015, 14:36
Re: MySQL error - by TommyB - 30.04.2015, 15:08
Re: MySQL error - by aCloudy - 30.04.2015, 18:16
Re: MySQL error - by bgedition - 30.04.2015, 18:28
Re: MySQL error - by Sgt.TheDarkness - 30.04.2015, 18:36
Re: MySQL error - by aCloudy - 30.04.2015, 18:39
Re: MySQL error - by bgedition - 30.04.2015, 18:42
Re: MySQL error - by Sgt.TheDarkness - 30.04.2015, 18:42
Re: MySQL error - by aCloudy - 30.04.2015, 18:42
Re: MySQL error - by Sgt.TheDarkness - 30.04.2015, 18:46

Forum Jump:


Users browsing this thread: 3 Guest(s)