Posted 03 January 2013 - 12:10 PM
the code says it needs a ( on line 3 but i dont see anywhere it is necessary
the code is currently not complete so i have it set to only run 1 function 1 time
i had to put in _ before lines so it would show the spacing there they are spaces in the auctual code
–checks to see where blocks are and mines them if necessary
function digblocks
__if turtle.detect() then
____turtle.dig()
__end
__turtle.up()
__if turtle.detect() then
____turtle.dig()
__end
__turtle.turnRight()
__turtle.Forward
__turtle.turnLeft
__if turtle.detect() then
____turtle.dig()
__end
__turtle.down()
__if turtle.detect() then
____turtle.dig()
__end
__turtle.turnLeft()
__turtle.forward()
__turtle.turnRight()
end
– main code
digblocks()
the exact error i get is
bios:338: [string "mining2"]:5: '(' expected
the code is currently not complete so i have it set to only run 1 function 1 time
i had to put in _ before lines so it would show the spacing there they are spaces in the auctual code
–checks to see where blocks are and mines them if necessary
function digblocks
__if turtle.detect() then
____turtle.dig()
__end
__turtle.up()
__if turtle.detect() then
____turtle.dig()
__end
__turtle.turnRight()
__turtle.Forward
__turtle.turnLeft
__if turtle.detect() then
____turtle.dig()
__end
__turtle.down()
__if turtle.detect() then
____turtle.dig()
__end
__turtle.turnLeft()
__turtle.forward()
__turtle.turnRight()
end
– main code
digblocks()
the exact error i get is
bios:338: [string "mining2"]:5: '(' expected