Posted 28 March 2015 - 08:26 PM
I have been trying to write a code for a nuclear bunker in case of attack, and I have been constantly running into this error:
bios:367: [string "bunker"]:11: '<eof>' expected
I know what this means, however I have not been able to fix it. here is the code:
term.clear()
print("Are You Sure you Want to Do this?")
print("Y/N")
term.setCursorPos(2,3)
if input == "Y" then
redstone.setOutput("bottom", true)
sleep (15)
redstone.setOutput("bottom", false)
peripheral.call("top", "write", "NUCLEAR EMERGENCY")
end
else
if input== "N" then
os.reboot()
end
(Sorry that it isnt in A spoiler i dont know how to do spoilers :/
bios:367: [string "bunker"]:11: '<eof>' expected
I know what this means, however I have not been able to fix it. here is the code:
term.clear()
print("Are You Sure you Want to Do this?")
print("Y/N")
term.setCursorPos(2,3)
if input == "Y" then
redstone.setOutput("bottom", true)
sleep (15)
redstone.setOutput("bottom", false)
peripheral.call("top", "write", "NUCLEAR EMERGENCY")
end
else
if input== "N" then
os.reboot()
end
(Sorry that it isnt in A spoiler i dont know how to do spoilers :/