26.07.2016, 14:13
hey guys,
my gmx command doesnt saves my player stats to mysql.
command:
Who can help me?
my gmx command doesnt saves my player stats to mysql.
command:
PHP код:
CMD:gmx(playerid, params[])
{
LevelCheck(playerid, 3);
new time;
if(sscanf(params, "I", time)) return Usage(playerid, "gmx [seconds]");
if(time < 0 || time > 5*60) return Error(playerid, "Invalid restart time (0 - 360 seconds).");
if(time > 0)
{
new string[144];
format(string, sizeof(string), "* Admin %s(%i) has set the server to restart in %i seconds.", GetName(playerid), playerid, time);
SendClientMessageToAll(COLOR_BLUE, string);
SetTimer("GMXTimer", 1000 * time, false);
}
else
{
new string[144];
format(string, sizeof(string), "* Admin %s(%i) has set the server to restart.", GetName(playerid), playerid);
SendClientMessageToAll(COLOR_BLUE, string);
SendRconCommand("gmx");
}
return 1;
}