SA-MP Forums Archive
GMX problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GMX problem (/showthread.php?tid=613315)



GMX problem - Fantje - 26.07.2016

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?


Re: GMX problem - Luis- - 26.07.2016

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


Re: GMX problem - Logic_ - 26.07.2016

Show us your OnGameModeExit.