Posted 28 February 2013 - 10:12 AM
Title: [lua][error] error 338 problem
I'm trying to make a program for my turtle to mine me a mineshaft, but I can't run it. The error log says "bios:338: [string "dig"]:2: '=' expected". I know this pops up when you miss a parameter, but I can't figure it out :/
Here's the code:
I'm trying to make a program for my turtle to mine me a mineshaft, but I can't run it. The error log says "bios:338: [string "dig"]:2: '=' expected". I know this pops up when you miss a parameter, but I can't figure it out :/
Here's the code:
once
turtle.refuel( 1 )
endonce
while j < 10 do
if turtle.getFuelLevel() < 10 then
turtle.refuel( 1 ) end
else
j = 0
turtle.dig()
turtle.forward()
turtle.turnLeft()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.turnLeft()
j = j + 1