MySQLConnect()
#3

Thanks for answering!

Like this?

Код:
stock MySQLConnect()
{
	mysql_debug(1);
	if(!mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS))
	{
		if(mysql_ping()==-1)
		{
			print("Server failed to connect to MySQL!");
			SendRconCommand("exit");
		}
	}	
	return 0;
}
It doesn't work
Reply


Messages In This Thread
MySQLConnect() - by BritishBoy - 24.04.2011, 15:24
Re: MySQLConnect() - by playbox12 - 24.04.2011, 15:30
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:37
Re: MySQLConnect() - by [NoV]LaZ - 24.04.2011, 15:40
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)