Donjohrae Posted May 29, 2013 Posted May 29, 2013 i keep getting this error when im trying to write run a program bios:337: [string "startup"]:16: '<eof>' expected can someone help me? Here's my code (not real passwords) term.clear() termCursorPos(1,1) os.pullEvent = os.PullEventRaw password = "Password" masterpassword = "Password" print("Solve My Riddle!") write "Please Enter Password: " local input = read("$") if input == (password) then print("Access Granted") esleif input == (masterpassword) then print("Welcome, Your Terminal Is Unlocked") else print("Go Away Loser") sleep(2) os.shutdown end Quote
weirleader Posted May 29, 2013 Posted May 29, 2013 are you saying this error occurs while you're *writing* the program? Or does it occur when you *run* the program? Quote
Donjohrae Posted May 29, 2013 Author Posted May 29, 2013 are you saying this error occurs while you're *writing* the program? Or does it occur when you *run* the program? When i run the program Quote
weirleader Posted May 29, 2013 Posted May 29, 2013 well then you'll need to share the code -- according to your error, you have a problem with line 16 (though that's not necessarily where the flaw is). Quote
Calvariae Posted May 29, 2013 Posted May 29, 2013 well, elseif is misspelled on line 15. Not sure if that is the only mistake. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.