function tryForward_track(fd) while not turtle.forward() do if turtle.detect() then turtle.dig() end end fd = fd + 1 end
Is it possible to take a local variable - pass it to a function (in an API)?
Basically the above function is in my API; and my program calls that to keep track of how far it's moving forward - but I get the error: "attempt to perform arithmetic function __add on nil and number"
Edited by gronkdamage, 05 June 2014 - 06:22 PM.











