Timer Problem.
#3

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Minus the gametime timer to about half its time, if theres alot timers try your best to delete them and store all of them in one timer

pawn Код:
enum TIMER_DATA
{
    E_TIMER_INTERVAL[20(Amount of timers you want to store)]
}
new gTimerData[TIMER_DATA];

forward timer();
public timer()
{
    gTimerData[E_TIMER_INTERVAL][1] = gTimerData[E_TIMER_INTERVAL][1] + 500;// timer one, each time the timer is called it will do this; lets say this timer is set to 500ms

    if(gTimerData[E_TIMER_INTERVAL][1] == 2000) // 2 seconds call this:
    {
        gTimerData[E_TIMER_INTERVAL][1] = 0; Reset
        //code..
    }
}
Dont have to follow that but just a tip to shortening timers.
CAn you explain it with this?
Код:
	SetTimer("Jailed",1000,true);
	SetTimer("UpdateJP", 30000, true); //Updates the jackpot
	SetTimer("PlayerOneSecondVariables",1000,1);
	SetTimer("ServerOneSecondVariables",1000,1);
	SetTimer("checkpointUpdate",1100,1);
	SetTimer("SFPDGatesOpen",1000,1);
	SetTimer("ArmyGatesOpen",1000,1);
	SetTimer("TaxiPay",60000,1);
	SetTimer("HasSTITimer",10000,1);
        SetTimer("IncreaseTime", 100, true);//1000
Reply


Messages In This Thread
Timer Problem. - by Admigo - 30.05.2011, 07:50
Re: Timer Problem. - by Lorenc_ - 30.05.2011, 09:31
Re: Timer Problem. - by Admigo - 30.05.2011, 12:19
Re: Timer Problem. - by Admigo - 30.05.2011, 21:18
Re: Timer Problem. - by Lorenc_ - 01.06.2011, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)