Posted 07 November 2013 - 10:45 AM
Title: Need help with this program
hey,
I want to have a turtle with mines a 3x3 area with a length given by me, i've come this var:
local a = { … }
if #a ~= 0
then
for i=1, a, 1 do
turtle.dig()
turtle.forward()
end
else
print("have to fill in a number")
end
i've saved the program to dig
when i run dig 2 it says "dig:4: 'for' limit must be a number"
who can help me?
hey,
I want to have a turtle with mines a 3x3 area with a length given by me, i've come this var:
local a = { … }
if #a ~= 0
then
for i=1, a, 1 do
turtle.dig()
turtle.forward()
end
else
print("have to fill in a number")
end
i've saved the program to dig
when i run dig 2 it says "dig:4: 'for' limit must be a number"
who can help me?