KillTimer
#1

I can't get my KillTimer to work..
Код:
forward start();
new starter;
Код:
public start()
{
	starter = SetTimer("fire1",0,false);
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/firework", cmdtext, true, 10) == 0)
	{
		SetTimer("start",0,false);
		return 1;
	}
	if (strcmp("/stopfirework", cmdtext, true, 10) == 0)
	{
		KillTimer(starter);
		return 1;
	}
	return 0;
}
When i do /stopfirework it doesn't stop! /firework starts the whole thing nicely.
But when it comes to shutting the fireworks down it doesnt work.
Reply


Messages In This Thread
KillTimer - by RedFusion - 31.10.2010, 23:25
Re: KillTimer - by Saurik - 31.10.2010, 23:31
Re: KillTimer - by RedFusion - 01.11.2010, 00:27
Re: KillTimer - by Zamaroht - 01.11.2010, 03:32
Re: KillTimer - by RedFusion - 01.11.2010, 13:15
Re: KillTimer - by HireMe - 01.11.2010, 13:36
Re: KillTimer - by Bessensap - 01.11.2010, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)