Restarting Command problem
#1

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?
Reply
#2

pawn Код:
new restarting;
Function GameModeInitExitFunc... what is it? Use SendRconCommand("gmx");
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)