Bomb Bloke, on 06 August 2015 - 07:13 AM, said:
Less to do with your use of the Parallel API (there are steps you need to take there, but you're performing them correctly), more to do with you sticking "" as a parameter when you call read(). It prints the value of that parameter when people type stuff, see. If you want it to print what they actually type, use read() instead of read("").
Aside from some missing variable localisation, the only other change I'd suggest would be to your "clear()" function - if a variable is set to false / nil, then simply sticking it into an "if" conditional check on its own'll make the result false. Any other variable is treated as true. You can therefore do:
But those are minor issues.
Aside from some missing variable localisation, the only other change I'd suggest would be to your "clear()" function - if a variable is set to false / nil, then simply sticking it into an "if" conditional check on its own'll make the result false. Any other variable is treated as true. You can therefore do:
if sec then sleep(sec) end
But those are minor issues.
Aha, Didn't know quotes weren't needed.
3rd edit, ftw. not reading right.
Problem solved, Not sure how to lock topic.