Thread: Timer
View Single Post
  #14  
Old 03-18-2008, 09:14 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Tigairius View Post
You can also do:
PHP Code:
while(== 1) {
  
this.time++;
  
message #v(this.time);
  
sleep 1;

Don't use a while loop, it will probably stop at the maxlooplimit which is 10,000 by default. If you want an unending loop always use timers or scheduled events.

Even if you did use a while loop it should be while (true) {}
__________________
Reply With Quote