Posted 13 July 2013 - 04:46 AM
just at the title says i get that error when i reboot my computer with this code in startup:
where did i do wrong?
term.clear()
term.setCursorPos(1,1)
os.pullEvent = os.pullEventRaw
password = "Base"
masterpassword = "Secret"
print("B: Close S: Open")
write: ("Password:")
local input = read("*")
if input == (password) then
print("Door Closing Please Wait...")
redstone.setOutput("bottom",true)
sleep(5)
redstone.setOutput("bottom",true)
sleep(5)
redstone.setOutput("bottom",true)
sleep(5)
os.shutdown()
elseif input == (masterpassword) then
print("Door Opening Please Wait...")
redstone.setOutput("back",true)
sleep(5)
redstone.setOutput("back",true)
sleep(5)
redstone.setOutput("back",true)
os.shutdown()
else
print("Unknown Password, Check Spelling")
sleep(5)
os.shutdown()
end
where did i do wrong?