Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...