Posted 11 July 2013 - 03:51 PM
Titel: Can't find whre i did wrong!
i cant find where i did wrong here:
i cant find where i did wrong here:
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