Posted 13 April 2013 - 07:43 AM
My simple door lock program keeps making an error, what am I missing?!
The Door Lock Code:
the error:
The Door Lock Code:
term.clear()
term.setCursorPos(1,1)
password = "nothing"
print [[
Danny's House (Emergency Entrance)
----------------------------------------------
Please enter password:
]]
sleep(1)
input = read("*")
if input == password then
textutil.slowPrint("Verrifying Password..........")
print("Password Accepted!")
sleep(2)
print("Access Granted for 8 Seconds")
rs.setOutput("back",true)
sleep(8)
rs.setOutput("back",false)
os.shutdown()
else
textutils.slowPrint("Verrifying Password..........")
print("Password Denied!")
sleep(2)
os.shutdown()
end
the error:
bios:338: [string "startup"]:16: unfinished string