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
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?
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
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).
Calvariae Posted May 29, 2013 Posted May 29, 2013 well, elseif is misspelled on line 15. Not sure if that is the only mistake.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now