Author Topic: Making While True loops work  (Read 810 times)

I try to make a schedule into a while true loop to make it work but it crashes.
Code: [Select]
while(true){schedule(1000,0,echo,HelloWorld);}

Please help, there isn't a thread for this.


it's going too fast, without a delay
while(true){}
makes an inf loop without a break; i think
try
function hello()
{
echo("HelloWorld");
schedule(1000, 0, hello);
}

Doing a non-terminating loop will make it go on forever, and never reaching anything but the loop.

well, just doing while(true){} will make it go too fast and crash, i thought, so if you space it out with functions i think it would work better