Board Thread:Questions and Answers/@comment-6396609-20130209170452/@comment-6024139-20130209183132

Deathwalker95 wrote: this is the enitire error

bios:206 [string "LogIn"]:53: ' ' expected Ok, I fixed it. But it's still a long way from good. It looks like you just copy pasted an existing script to have multiple passwords. I'm not sure if it works or not. It runs though.

os.pullEvent = os.pullEventRaw

print (" WELCOME USER...")

print ("PASSWORD:")

write ("")

x = io.read

if x == "password" then

term.clear

term.setCursorPos ( 1, 1 )

textutils.slowPrint ("LOG IN SUCCESSFUL")

textutils.slowPrint ("ACCESS GRANTED...")

sleep(2)

term.clear

term.setCursorPos ( 1, 1 )

shell.run "mainmenu"

else

print ("WRONG PASSWORD, PLEASE TRY AGAIN.")

write ("")

x = io.read

if x == "password" then

term.clear

term.setCursorPos ( 1, 1 )

textutils.slowPrint ("LOG IN SUCCESSFUL")

textutils.slowPrint ("ACCESS GRANTED...")

sleep(2)

term.clear

term.setCursorPos ( 1, 1 )

shell.run "mainmenu"

else

term.clear

term.setCursorPos ( 1, 1 )

textutils.slowPrint ("PASSWORD INCORRECT!")

textutils.slowPrint ("FAILSAFE INITIATED!")

redstone.setOutput ("back", true )

sleep(1)

textutils.slowPrint ("ALARM ACTIVATED!")

textutils.slowPrint ("ENTER FAILSAFE PASSWORD TO DEACTIVATE ALARM")

textutils.slowPrint ("PASSWORD:")

write ("")

x = io.read

if x == "password2" then

textutils.slowPrint ("PASSWORD ACCEPTED")

textutils.slowPrint ("POWERING OFF ALARM...")

redstone.setOutput ("back", false )

sleep(2)

term.clear

term.setCursorPos ( 1, 1 )

shell.run "mainmenu"

else

term.clear

term.setCursorPos ( 1, 1 )

textutils.slowPrint ("PASSWORD INCORRECT!")

textutils.slowPrint ("FAILSAFE INITIATED!")

textutils.slowPrint ("ENTER FAILSAFE PASSWORD TO DEACTIVATE ALARM")

textutils.slowPrint ("PASSWORD:")

sleep(2)

end

end

end