The timer looks fine as far as I can tell from a quick review. Maybe add in a shout before the depopalls for debugging purposes so you can see if the script is making it to that point or not. Adding debugs throughout a script that is giving you trouble is a good way to tell if anything is wrong with it. You can add a shout (or whatever message) before and after any section of the script so you can see exactly what is happening at each step. It is also good to put the variables you are using or expecting into the debug messages so you can make sure they are being set as you expect (such as $timer).
|