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

syntax error

Started by drakanmaster, 04 January 2014 - 01:32 PM
drakanmaster #1
Posted 04 January 2014 - 02:32 PM
im getting a syntax error on 53 here is my code


local args = {…}
local dist = tonumber(args[1])
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.select(16)
turtle.place()
turtle.back()
turtle.turnLeft()
turtle.back()

turtle.up()
for i=1,dist,1 do

turtle.select(1)
turtle.place()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end
turtle.place()
turtle.back()
for i=1,dist,1 do
turtle.select (2)
turtle.place()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end
turtle.place()
turtle.up()
turtle.up()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.down()
turtle.turnLeft()
turtle.turnLeft()
for i=1,dist,1 do
turtle.place()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end
turtle.place()
turtle.down()
turtle.down()
turtle.forward()
turtle.turnLeft()
while turtle.forward() do
end
turtle,back()
for i=1,dist,1 do
turtle.select(2)
turtle.place()
turtle.back()
end
turtle.place()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
for i=1,dist,1 do
turtle.forward()
end


any help would be great
Lyqyd #2
Posted 04 January 2014 - 02:42 PM
turtle,back() should be turtle.back()
drakanmaster #3
Posted 04 January 2014 - 02:45 PM
thanks that fixed it