Posted 12 July 2012 - 06:44 AM
i just started using this mod and i need some help because i dont fully understand what the coding is doing. I have a door to be opened on startup when i type "'open" but i dont want it to close until i enter the computer again and type "close". with my extremely basic understanding of how these things work i came up with this on startup.
function pass()
t = io.read()
if t == "open" then
redstone.setOutput("back" , true)
pass()
if t == "close" then
redstone.setOutput("back" , false)
pass()
else
pass()
end
end
pass()
when i startup the system it say bios:206: [string "startup"]:7: unfinished string
if you correct my code please tell me what i did wrong and at least try to teach me.
function pass()
t = io.read()
if t == "open" then
redstone.setOutput("back" , true)
pass()
if t == "close" then
redstone.setOutput("back" , false)
pass()
else
pass()
end
end
pass()
when i startup the system it say bios:206: [string "startup"]:7: unfinished string
if you correct my code please tell me what i did wrong and at least try to teach me.