Timer Problem
#1

Hi all,

I have a problem with my gamemode.
Sometimes when someone is joining on the server
this timer wont continue anymore(The timer stops).
When i reconnect server the timer continues.
pawn Код:
forward OneSecondTimer();
//ongamemodeinit
SetTimer("OneSecondTimer",1000,1);//An One Second Timer That Keeps Running On The Server
//
public OneSecondTimer()//
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
                    if(Variable[i]>0)
                        {
                            Variable[i]--;
                        }
                }
         }
}
I dont kill the timer.
How can i fix this?
I also using all filterscripts in one gamemode like house and vehicle system.
Is that a problem?

Thanks Admigo
Reply


Messages In This Thread
Timer Stops Working After Player Join. - by Admigo - 31.01.2013, 14:58
Re: Timer Problem - by Amora187 - 31.01.2013, 17:10
Re : Timer Problem - by yusei - 31.01.2013, 17:24
Re: Re : Timer Problem - by Amora187 - 31.01.2013, 17:31
Re: Re : Timer Problem - by Amora187 - 31.01.2013, 17:33
Re: Timer Problem - by Admigo - 31.01.2013, 18:02

Forum Jump:


Users browsing this thread: 3 Guest(s)