This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
xXLoneReaperXx's profile picture

Turtle Mine Syntax Error

Started by xXLoneReaperXx, 18 June 2012 - 04:29 AM
xXLoneReaperXx #1
Posted 18 June 2012 - 06:29 AM
I am getting this error:

bios:206: [string "mine"]:22:syntax error

Here is my code:

local num = 1
while num < 10 do
turtle.dig()
turtle.forward()
num = num + 1
end

turtle.turnRight()
turtle.dig()
turtle.forward()
turlte.turnRight()

local num2 = 1
while num2 < 10 do
turtle.dig()
turtle.forward()
num2 = num2 + 1
end

turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()

local num3 = 1
while num3 < 10 do
turtle.dig()
turtle.forward()
num3 = num3 + 1
end

turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()

local num4 = 1
while num4 < 10 do
turtle.dig()
turtle.forward()
num4 = num4 + 1
end

turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()

local num5 = 1
while num5 < 11 do
turtle.dig()
turtle.forward()
num5 = num5 + 1
end

turtle.turnLeft()

local num6 = 1
while num6 < 5 do
turtle.dig()
turtle.forward()
num6 = num6 + 1
end

turtle.turnRight()
BigSHinyToys #2
Posted 18 June 2012 - 06:55 AM
found one spelling error


local num = 1
while num < 10 do
turtle.dig()
turtle.forward()
num = num + 1
end
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight() -- spelling was turlte.turnRight()
local num2 = 1
while num2 < 10 do
turtle.dig()
turtle.forward()
num2 = num2 + 1
end
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()
local num3 = 1
while num3 < 10 do
turtle.dig()
turtle.forward()
num3 = num3 + 1
end
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()
local num4 = 1
while num4 < 10 do
turtle.dig()
turtle.forward()
num4 = num4 + 1
end
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()
local num5 = 1
while num5 < 11 do
turtle.dig()
turtle.forward()
num5 = num5 + 1
end
turtle.turnLeft()
local num6 = 1
while num6 < 5 do
turtle.dig()
turtle.forward()
num6 = num6 + 1
end
turtle.turnRight()