[Tutorial] Player-timers
#6

Quote:
Originally Posted by Y_Less
View Post
I'm sorry, if this is more efficient that normal timers I will be VERY much surprised!

1) Normal timers are C++, these timers are PAWN - instant win for natives!

2) You are just replicating the source of normal timers in PAWN - how do you think they work? It is NOT using processes as you seem to think, it is just a function in the server called in EXACTLY the same way as you are doing, to check the elapsed time and fire off PAWN functions as appropriate.

3) This doesn't support timers with sub-second fractions.

When used properly there is nothing at all wrong with using SA:MP timers - they were designed to have many spawned, plus they keep code neat and separated, this method doesn't.
I also don't see the big 'hype' about 'timers are bad, don't use them' I've used timers quite alot, and I never had any lagg at all, that includes a timer that is called every second.

But, anyways, nice tutorial Lenny, I did learn something from it, and I am sure some more people will.
Reply


Messages In This Thread
Player-timers - by Lenny the Cup - 12.10.2010, 10:36
Re: Player-timers - by Rachael - 12.10.2010, 11:03
Re: Player-timers - by Lenny the Cup - 12.10.2010, 11:22
Re: Player-timers - by Rachael - 12.10.2010, 11:43
Re: Player-timers - by Lenny the Cup - 12.10.2010, 11:50
Re: Player-timers - by playbox12 - 12.10.2010, 16:18
Re: Player-timers - by Lenny the Cup - 13.10.2010, 11:13
Re: Player-timers - by Lenny the Cup - 13.10.2010, 20:23
Re: Player-timers - by Slice - 13.10.2010, 20:29
Re: Player-timers - by RoBo - 14.10.2010, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)