MYSQL error Gamemode RPG
#8

Add this to your code:

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;
}
If it returns "MySQL connection is dead!" - you're not connecting to your database.
Reply


Messages In This Thread
MYSQL error Gamemode RPG - + Reputation - by UltraPro - 27.05.2016, 14:00
Re: MYSQL error Gamemode RPG - by Vince - 27.05.2016, 14:16
Re: MYSQL error Gamemode RPG - by Noris - 27.05.2016, 14:55
Re: MYSQL error Gamemode RPG - by SyS - 27.05.2016, 14:56
Re: MYSQL error Gamemode RPG - by UltraPro - 27.05.2016, 15:01
Re: MYSQL error Gamemode RPG - by UltraPro - 27.05.2016, 15:25
Re: MYSQL error Gamemode RPG - by UltraPro - 28.05.2016, 08:33
Re: MYSQL error Gamemode RPG - by RedCounty - 28.05.2016, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)