"control.lua:73: 'end' expected (to close 'if' at line 47) near <eof>"
If I comment out the erroring "if" block with the method to execute and the "end" statement or put an "end" statement at the expected position, it gives me the same error for another of the three "if" blocks. If I comment out all three if blocks, it expects me to put an "end" at <eof> to close the method. I don't get why, because all the "end" statements the computer expects are in the code. If I put all four "end" statements the computer expects, the program runs the way it should.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
When trying to execute this code (http://pastebin.com/Kujgx5sx), the computer gives me the following error:
"control.lua:73: 'end' expected (to close 'if' at line 47) near <eof>"
If I comment out the erroring "if" block with the method to execute and the "end" statement or put an "end" statement at the expected position, it gives me the same error for another of the three "if" blocks. If I comment out all three if blocks, it expects me to put an "end" at <eof> to close the method. I don't get why, because all the "end" statements the computer expects are in the code. If I put all four "end" statements the computer expects, the program runs the way it should.
Link to post
Share on other sites