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


Messages In This Thread
GMX problem - by Fantje - 26.07.2016, 14:13
Re: GMX problem - by Luis- - 26.07.2016, 14:15
Re: GMX problem - by Logic_ - 26.07.2016, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)