Posted 04 June 2014 - 10:31 AM
i have written a program for 4 turtle in my farm
my code:
when everytime i run it i get the error: attack:22: Expected string
i have put a screenshot of the turtle positioning. http://i.imgur.com/qbN6922.jpg
my code:
function Left()
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end
function Right()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
function row()
turtle.attack()
Left()
turtle.attack()
Right()
end
while true do
evt, arg1 = os.pullEvent("redstone")
if rs.getInput(Bottom) then
row()
end
end
when everytime i run it i get the error: attack:22: Expected string
i have put a screenshot of the turtle positioning. http://i.imgur.com/qbN6922.jpg