Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Making While True loops work
« previous
next »
Print
Pages: [
1
]
Author
Topic: Making While True loops work (Read 811 times)
frogger3140
December 17, 2010, 05:22:54 PM
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);}
Ad Bot
Advertisement
frogger3140
December 17, 2010, 05:26:44 PM
Please help, there isn't a thread for this.
frogger3140
December 17, 2010, 05:38:37 PM
Hello?
phflack
December 17, 2010, 05:40:53 PM
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
December 17, 2010, 05:42:55 PM
Doing a non-terminating loop will make it go on forever, and never reaching anything but the loop.
phflack
December 17, 2010, 05:45:52 PM
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
frogger3140
December 17, 2010, 07:54:14 PM
thanks
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Making While True loops work