12.10.2010, 16:18
Quote:
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. |
But, anyways, nice tutorial Lenny, I did learn something from it, and I am sure some more people will.