I'm writing a program to read the energy level from an energy cell ( using a comparator). The signal is then being broken down into three groups, Green, Red, Yellow, then sent by rednet to another computer. This computer is where the problem lies. I'm getting an error "bios:366: [string "startup"]:13: syntax error"
http://pastebin.com/1i3Z3yLx
Any help would be greatly appreciated and if you are interested in the other part I can pastebin that as well, just comment.
-
rednet.open("left") -
while true do -
local level = rednet.receive() -
if level == "Green" then -
rs.setOutput("top" , true) -
rs.setOutput("front", true) -
rs.setOutput("right", true) -
end -
if level == "Yellow" then -
rs,setOutput("front", true) -
rs.setOutput("right", true) -
rs.setOutput("top", false) -
end -
if level == "Red" then -
rs.setOutput("right", true) -
rs.setOutput("top", false) -
rs.setOutput("front", false) -
end -
os.sleep(600) -
end