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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...