Posted 31 March 2012 - 07:02 AM
I need help with my program I just started it but I can't seem to get it to work.
Can anyone help?
ERROR:
bios:206: [string "sizedtunnel"]:29: '=' expected
CODE:
Can anyone help?
ERROR:
bios:206: [string "sizedtunnel"]:29: '=' expected
CODE:
local tArgs = { ... }
if #tArgs ~= 1 then
print( "Usage: sizedtunnel <width>" )
return
end
local width = tonumber( tArgs[1] )
if width < 1 then
print( "Tunnel Width must be positive" )
return
end
local move = 0
print("Tunnelling...")
loop = 1
while loop == 1 do
move = width
--Start
if turtle.detect() then
turtle.dig()
turtle.forward()
else
turtle.forward()
end
turtle.turnLeft
--Side Movement
while move > 0 do
if turtle.detectDown() then
turtle.digDown()
end
if turtle.detect() then
turtle.dig()
turtle.forward()
move = move - 1
else
turtle.forward()
move = move - 1
end
end
end
http://pastebin.com/Rez64azr