PDA

View Full Version : Restarting Command problem


Stanford
28/12/2012, 04:54 PM
Here's the command:

CMD:restart(playerid, params[])
{
if(IsPlayerConnected(playerid)) {
if(PlayerInfo[playerid][pAdmin] >= 1337) {
restarting = 1;
GameModeInitExitFunc();
} else {
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}

Everything is fine, but I get errors about defining symbols "restarting" and "gamemodeinitexitfunc" can anyone help me?

Diorturato
28/12/2012, 05:00 PM
new restarting;

Function GameModeInitExitFunc... what is it? Use SendRconCommand("gmx");

Konstantinos
28/12/2012, 05:04 PM
It is supposed, restarting variable is a global one and GameModeInitExitFunc is used for reseting/killing timers etc.. (It's custom).

Can you show us what errors do you get, please?