20.08.2012, 21:33
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:
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.)
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.
}
(I don't really know what you want to do yet but that was what i was thinking about.)