KillTimer
#4

Quote:
Originally Posted by Blast3r
Посмотреть сообщение
Because you didn't create it as anything.


pawn Код:
new DrugHealth
pawn Код:
DrugHealth = SetTimerEx("DrugHealthDone", 1_000, false, "if",playerid, float);

As example.


EDIT: Then kill is as KillTimer(DrugHealth);
Thank you

Quote:
Originally Posted by Smileys
Посмотреть сообщение
there's quite a few things I'd like to point out there.


5_000? what's that? lol, shouldn't it be 5000?

second of all:

when you wanna kill a timer, you should define it first, like
pawn Код:
new Timer[ MAX_PLAYERS char ];
Timer{ playerid } = SetTimerEx( ... );

// then in the drughealthdone:
KillTimer( Timer{ playerid } );
5_000 is the same exact thing as 5000, i prefer doing it that way
Thank you, also
Reply


Messages In This Thread
KillTimer - by SnG.Scot_MisCuDI - 15.07.2014, 18:58
Re: KillTimer - by Blast3r - 15.07.2014, 19:00
Re: KillTimer - by Smileys - 15.07.2014, 19:00
Re: KillTimer - by SnG.Scot_MisCuDI - 15.07.2014, 19:14

Forum Jump:


Users browsing this thread: 4 Guest(s)