Posted 25 September 2012 - 04:43 PM
Hello,
Im new to programing in lua but I made a few simple programs like password locks
My problem is that I tried to make a function but it failed
Here is how it looks like:
function rsOut(var, time)
redstone.setOutput("var" , true)
sleep(time)
redstone.setOutput("var", false)
end
rsOut(left, 5)
But after this it fails
So can Any one help me please
Im new to programing in lua but I made a few simple programs like password locks
My problem is that I tried to make a function but it failed
Here is how it looks like:
function rsOut(var, time)
redstone.setOutput("var" , true)
sleep(time)
redstone.setOutput("var", false)
end
rsOut(left, 5)
But after this it fails
So can Any one help me please