Posted 14 January 2017 - 08:56 AM
Hi!
I have a problem: I made my own lua program:
but an error keep coming up: bios:14: [string "routing"]:29: '<eof>' expected
Thank You
Alberto
P.S Ive been trying to google it for about 2 hours but couldn't find anything…
I have a problem: I made my own lua program:
rednet.open("top")
while true do
event, sender, message, dist = os.pullEvent("rednet_message")
if message == "lake" then
redstone.setOutput("right", true)
print("Routing to lake station")
redstone.setOutput("left", false)
sleep(10)
redstone.setOutput("left", false)
redstone.setOutput("right", false)
print("Done")
else
print(message .. " is invalid")
end
if message == "sea" then
redstone.setOutput("left", true)
print("Routing to Sea Station")
redstone.setOutput("right", false)
os.sleep(10)
redstone.setOutput("left", false)
redstone.setOutput("right", false)
print("Done")
else
print(message .. " is invalid")
end
end
end
but an error keep coming up: bios:14: [string "routing"]:29: '<eof>' expected
Thank You
Alberto
P.S Ive been trying to google it for about 2 hours but couldn't find anything…