Lignum, on 02 January 2016 - 11:52 PM, said:
error()
Edit: I have tested it and it works perfectly! Thanks!
Lignum, on 02 January 2016 - 11:52 PM, said:
However, in my opinion, this is a very ugly solution. I suggest you do something like this instead:
local keepRunning = true while keepRunning do --# ... end
Now if you set keepRunning to false, the loop will stop. Keep in mind that if you do this while the loop is running, the loop will finish its current iteration before it stops.
I have tried that, and it seems to work most of the time, but I don't think this is the correct solution.


