Info: Gettime
#5

what do you mean with the tick count?
There is no function that gets called every second, that's why if you want one you'll have to set a timer like:

pawn Код:
forward TickCountFunction();
SetTimer("TickCountFunction", 1000, true);
//and then you'll have to make the tickcount function:


public TickCountFunction(){
//do the thing you want to be done every second here.
}
That's how you do a function that gets called every second, but if you want to do something every 4 second it better just doing a timer that ONLY gets called every 4 second instead of making this and checking the time.
(I don't really know what you want to do yet but that was what i was thinking about.)
Reply


Messages In This Thread
Info: Gettime - by NewbieScripter - 20.08.2012, 20:43
Re: Info: Gettime - by NewbieScripter - 20.08.2012, 21:13
Re: Info: Gettime - by Ranama - 20.08.2012, 21:24
Re: Info: Gettime - by NewbieScripter - 20.08.2012, 21:25
Re: Info: Gettime - by Ranama - 20.08.2012, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)