View Single Post
  #28  
Old 08-16-2010, 04:15 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
PHP Code:
function setTimer(temp.x) {
  if (
temp.<= 0) {
    return;
  }
  
cancelevents("Timeout");
  
scheduleevent(temp.x"Timeout"null);

And probably some other magic.

I never use timeouts because I like to pass state to the function via. scheduleevent instead of relying on this. variables like you need to in timeouts.
Reply With Quote