| Blockland Forums > Modification Help |
| How do I make a while loop pause |
| << < (2/2) |
| phflack:
try making a new function with schedules with an if inside for stopping? sorta like --- Code: ---$stop = 0; function quack() { if($stop == 1) return; commandtoserver('messagesent', "quack"); schedule(1000, 0, quack); } --- End code --- set $stop to 1 to stop, or --- Code: ---function quack() { cancel($quack); commandtoserver('messagesent', "quack"); $quack = schedule(1000, 0, quack); } --- End code --- and use cancel($quack) to stop |
| Navigation |
| Message Index |
| Previous page |