Posted 11 February 2013 - 01:29 PM
Alright, so I was trying to get fancy with a line of code that didn't need to get fancy. My Coding is short and the function is not needed but I would like to know why it doesn't work.
Here is the code:
I found the issue, I originally tried naming the function wrong, which gave me the error and it messed up the computer. Just picked it up and put it back down (with label cleared) and it kinda works, different error but I can work around that.
Here is the code:
local side = back
local function Door()
redstone.setOutput("side", true)
sleep(0.5)
redstone.setOutput("side", false)
end
Door()
sleep(10)
Door()
I found the issue, I originally tried naming the function wrong, which gave me the error and it messed up the computer. Just picked it up and put it back down (with label cleared) and it kinda works, different error but I can work around that.