ID:166919
 
I have a proc that sleeps for 10 seconds and then moves a mob. The problem is I have to keep running this so i make the proc run again after its done. Its fine until after a while that an infinte loop error comes in and stops the proc. Is there a way around this?
It would be easier to know what you were doing if you could show some code.
by the sounds of it, you're doing this:

proc/Something()
//domycode
sleep(100)
Something()


When you should be doing something more like:
proc/Something()
//domycode
spawn(100) Something()


or

proc/Something()
while(condition)
//domycode
sleep(100)
In response to Airjoe
And it will not be called an infinite loop?
In response to Tazor07
Well, assuming you're sleeping the process correctly, no. The most-likely reason you're getting that error is because of a call-stack build-up, which neither of those do.