TimerEX
#6

Why you don't pass the id of this timer into a variable? I mean.

PHP код:
new gRapeTimer[MAX_PLAYERS];
// initialize
gRapeTimer[playerid] = SetTimerEx("RapeEffect"RapeTimertrue"i"playerid);
// to kill this timer
KillTimer(gRapeTimer[playerid]);
// Don't forget to clear the value when user leaves the server.
public OnPlayerDisconnect(playerid)
{
    ...
    
KillTimer(gRapeTimer[playerid]);
    
gRapeTimer = -1;

Reply


Messages In This Thread
TimerEX - by Eoussama - 24.10.2016, 18:19
Re: [HELP] TimerEX - by Skimmer - 24.10.2016, 18:29
Re: [HELP] TimerEX - by Eoussama - 24.10.2016, 18:38
Re: [HELP] TimerEX - by Skimmer - 24.10.2016, 18:39
Re: [HELP] TimerEX - by Eoussama - 24.10.2016, 18:43
Re: [HELP] TimerEX - by Skimmer - 24.10.2016, 18:49
Re: [HELP] TimerEX - by Eoussama - 24.10.2016, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)