28.05.2016, 09:49
Add this to your code:
If it returns "MySQL connection is dead!" - you're not connecting to your database.
pawn Код:
new TimerTest;
public OnGameModeInit(){
//after your mysql_connect
TimerTest = SetTimer("TestPing", 999, true);
}
forward TestPing();
public TestPing(){
if(mysql_ping()) print("MySQL connection is still alive!");
else if(!mysql_ping()) print("MySQL connection is dead!");
return 1;
}