Posted 14 September 2012 - 08:37 PM
i want my computer to run a deployer and a block breaker form redpower x amount of times but i keep getting an error in line 16 it exspect "then" but its already there
local T
local Times
term.write("How many times shall it run: ")
T = read()
write("okay "..T)
write(" times")
while true do
redstone.setOutput("right", true)
sleep(0.5)
redstone.setOutput("right", false)
sleep(0.5)
redstone.setOutput("left", true)
sleep(0.5)
redstone.setOutput("left", false)
Times = Times+1
if Times = T then
break
end
print("Jobs done")