Posts: 143
Threads: 16
Joined: Mar 2009
Reputation:
0
Hey Guys,
I noticed that timers in pawn makes some problems. Do somebody have some tipps, how I can work with timers und how optimize them?
Posts: 143
Threads: 16
Joined: Mar 2009
Reputation:
0
No no, I know how they work. Look, I mean that, for example you shouldn't use to many Timers ... things like this.
Posts: 143
Threads: 16
Joined: Mar 2009
Reputation:
0
How many function supports a single timer?
Posts: 2,799
Threads: 95
Joined: Jun 2006
Reputation:
0
You don't want to make it too big. Nested if statements are okay to a point, switch statements are better.
Sometimes people try to reinvent the world in a timer and then wonder why it lags.
Posts: 143
Threads: 16
Joined: Mar 2009
Reputation:
0
How can I make this timers better:
SetTimer("UpdateData", 5000, 1);
SetTimer("SaveAccounts", 1800000, 1);
SetTimer("PickupGametexts", 995, 1);
SetTimer("FuelTimer", 15000, 1);
SetTimer("PayDay",60000,1);
SetTimer("Timer1", 501, 1);
SetTimer("Timer2", 800, 1);
SetTimer("JailTimer", 1000, 1); // Must be 1000 because of some Textdraw Countdowns