quote:
Originally posted by markee
quote:
Originally posted by CookieRevised
my recent wish (totally not possible atm): enumerate timers...
at the moment there is no way to retrieve/ check what times are running. If there was a way to determine this, developpers can more easly (and more elagant) check for important things like timers which are still running when another user signs in (common mistake to make in scripts which use timers).
example of workaround (which I actually turned into a 'feature', see disclaimer) and more notes about this in my script nudge flood protection.
EDIT: and while at it, a function to see how many time (in ms) there is left for a specific timer.
If you want to be creative using global variables you can check the first one about if a timer is currently in use (though there will be a very small amount of time either side where it will still say that it is being used), though it would be good for us to be able to check rather than have to rely on extra variables. Though the second one would become very useful i think.
can you explain what you're on about here as I don't understand it..... What I suggested is a function to enumerate timers, dunno what this has todo with "being creative with global variables"...
EDIT (after markee's reply):
Yeah, I posted it right before I went to work (am at work now). While I was driving at work I was wondering about what you've said, I realized it then. And that is actually exactly what I did in that flood protect script too: using a global array (but also using that array to count wasn't the 'feature' I was talking about though). Stupid me.