Blockland Forums > Modification Help

Making While True loops work

Pages: (1/2) > >>

frogger3140:

I try to make a schedule into a while true loop to make it work but it crashes.

--- Code: ---while(true){schedule(1000,0,echo,HelloWorld);}
--- End code ---


frogger3140:

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

frogger3140:

Hello?

phflack:

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);
}

Kalphiter:

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

Pages: (1/2) > >>

Go to full version