Restarting Command 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: Restarting Command problem (
/showthread.php?tid=402995)
Restarting Command problem -
Stanford - 28.12.2012
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?
Re: Restarting Command problem -
Diorturato - 28.12.2012
Function
GameModeInitExitFunc... what is it? Use
SendRconCommand("gmx");
Re: Restarting Command problem -
Konstantinos - 28.12.2012
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?