Jump to content




password door dont work : bios:14: [string "temo"]:17: 'than' expected

computer lua

1 reply to this topic

#1 iak33

  • New Members
  • 1 posts

Posted 29 January 2016 - 08:13 AM

Hey i working on this program but its not working :


  • os.pullEvent = os.pullEventRaw -- makes it so no one can terminate the program


  • redstone.setOutput("Left",true)


  • pass = "Maggi"


  • pass2 = "Kromminga"


  • while true do


  • term.clear()


  • term.setCursorPos(12,5)


  • print("Please Enter The Password")


  • term.setCursorPos(12,6)


  • input = read("*")


  • if input == pass then


  • rs.setOutput("right",true)


  • sleep(2)


  • rs.setOutput("right",false)


  • os.reboot()


  • elseif


  • input = = pass2 then


  • print("Starte Wartungsmodus...")


  • print(" ")


  • redstone.Output("left",false)


  • else


  • term.setCursorPos(12,7)


  • print("WRONG PASSWORD")


  • sleep(2)


  • end


  • end


  • end

i dont know how i can fix the error i hope anyone can help me here .


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 29 January 2016 - 11:27 AM

Line 17 reads like this:

input = = pass2 then

Change "= =" to "==".





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users