First of all I can see that the code inside the while(true) loop isn’t indented (put 4 spaces forward).
And there’s more code at the top of the page which I can’t see, which might be causing the error.
Please could you post you code straight onto the Discourse, not take a screenshot.
Also make sure you format it, if you don’t know how to do that read this topic: link
Thanks,
1 Like