Posted 18 February 2012 - 02:06 AM
Its a form of http://www.computerc.../100-door-lock/
Im new to computer craft.
I get a error "[string "lock"]:7: ')' expected"
Thanks
Its a form of http://www.computerc.../100-door-lock/
Im new to computer craft.
I get a error "[string "lock"]:7: ')' expected"
Thanks
input = read("*")
rs.setOutput("left", true)
input == pass
pass = "password"
write "password: "
input = read("*")
if input == pass then -- if you didnt assign open to anything so you can't use it
print "welcome!"
redstone.setOutput("left", true)--dont forget the comma
sleep(3.5)
redstone.setOutput("left", false)
else
print "Awww :(/>"
sleep(1)
os.reboot()
end