GMX problem
#1

hey guys,

my gmx command doesnt saves my player stats to mysql.

command:
PHP код:
CMD:gmx(playeridparams[])
{
    
LevelCheck(playerid3);
    new 
time;
    if(
sscanf(params"I"time)) return Usage(playerid"gmx [seconds]");
    if(
time || time 5*60) return Error(playerid"Invalid restart time (0 - 360 seconds).");
    if(
time 0)
    {
        new 
string[144];
        
format(stringsizeof(string), "* Admin %s(%i) has set the server to restart in %i seconds."GetName(playerid), playeridtime);
        
SendClientMessageToAll(COLOR_BLUEstring);
        
SetTimer("GMXTimer"1000 timefalse);
    }
    else
    {
        new 
string[144];
        
format(stringsizeof(string), "* Admin %s(%i) has set the server to restart."GetName(playerid), playerid);
        
SendClientMessageToAll(COLOR_BLUEstring);
        
SendRconCommand("gmx");
    }
    return 
1;

Who can help me?
Reply
#2

You haven't put anything related to saving player stats in that command.
Reply
#3

Show us your OnGameModeExit.
Reply


Forum Jump:


Users browsing this thread: