Serious Discussion about TIMERS!
#8

pTask or SetTimerEx...

Just

timer[playeird] = SetTimerEx bla bla on player connect.

then

PHP Code:
public OnPlayerDisconnect(playeridreason)
{
    for(new 
i=0UsedTimers[playerid]; i++)
    {
        
KillTimer(PTimer[playerid][i]);
                
// Are you lol?, if you put this on loop, it stops looping because variable i greater than -1.
        //UsedTimers[playerid] = -1;
    
}
       
//place in here, because if the variable i is greater than your UsedTimers, then the script continue read this until return 1;
        
UsedTimers[playerid] = -1;
        return 
1;

Reply


Messages In This Thread
Serious Discussion about TIMERS! - by NexyAG - 31.12.2018, 23:36
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 00:03
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 03:49
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 10:49
Re: Serious Discussion about TIMERS! - by Spmn - 01.01.2019, 12:21
Re: Serious Discussion about TIMERS! - by IllidanS4 - 01.01.2019, 12:46
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 13:07
Re: Serious Discussion about TIMERS! - by B3x7K - 18.01.2019, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)