31.10.2010, 23:25
I can't get my KillTimer to work..
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.
Код:
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; }
But when it comes to shutting the fireworks down it doesnt work.