Posted 12 August 2012 - 09:55 PM
I want to be able to see the state of a nuclear reactor on a large monitor. I am using a thermal monitor and a redstone wire in to the nuclear reactor.to shut it off i also have a button to be used as a master shut off switch they are all connected to the computer but I am now getting an error code it is ""bios:206: [string "qwertyu"] :35: '<eof>' expected"" here is my code
print ("Welcome To Nuclear Reactor Monitor")
while true do
os.pullEvent("redstone")
if redstone.getInput("right") then -- master switch
print ("Starting Neuclear Reactor")
redstone.setOutput("back",true) -- on/off of the reactor
else if redstone.getInput("left") then -- thermal monitor
print("Overheat Detected shuting off reactor for cool down perod")
redstone.setOutput("back",false)
sleep(30)
else if redstone.getInput("right") then
print ("Nuclear Reactor OFF")
redstone.setOutput("back",false)
end
end
end
end
end