24.04.2011, 15:40
pawn Код:
stock MySQLConnect()
{
mysql_debug(1);
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
if (mysql_ping()) == -1)
{
print("Server failed to connect to MySQL!");
SendRconCommand("exit");
}
else
{
print("Connection successful\nGood day");
}
}