Problem Timer
#1

Sometime my timer called "AntiCheat" doesn't start ... I create a special command to start timer, but still doesn't work

Код:
if(!strcmp(cmdtext, "/restartacheat42s", true))
    {
		SetTimer("anticheat", 100, 0);
	   	SendClientMessage(playerid, COLOR_YELLOW, "Anti cheat has been restarted.");
    	return 1;
	}
Reply
#2

Read up the documentation on SetTimer. Two possible problems, 1) the name of the function needs to be case specific 2) you only call the function once. If you want the timer to repeat, pass 1 or "true" for the third parameter.
Reply
#3

1) I checked and it's correct

2)

Код:
public OnGameModeInit()
{
   SetTimer("anticheat",1000,true);
}

forward anticheat();
public anticheat()
{

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)