Posted 18 August 2016 - 05:59 PM
I keep getting this error when I reboot the computer. It is a startup command if it matters.
print("Input Password To Open Prison Door")
password = read()
if password == "Hanns-G" then
print ("Access Granted")
redstone.setOutput("back",true)
sleep(3)
redstone.setOutput("back",false)
os.shutdown()
elseif password == "Monitor" then
exit()
elseif password == "Punch" then
print("You Monster!")
redstone.setOutput("top",true)
sleep(1)
redstone.setOutput("top",false)
else
print("Access Denied, Shutting Down")
sleep(3)
os.shutdown
end – This is where the error lies. A value is expected.
print("Input Password To Open Prison Door")
password = read()
if password == "Hanns-G" then
print ("Access Granted")
redstone.setOutput("back",true)
sleep(3)
redstone.setOutput("back",false)
os.shutdown()
elseif password == "Monitor" then
exit()
elseif password == "Punch" then
print("You Monster!")
redstone.setOutput("top",true)
sleep(1)
redstone.setOutput("top",false)
else
print("Access Denied, Shutting Down")
sleep(3)
os.shutdown
end – This is where the error lies. A value is expected.