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

function or while loop not working?

Started by jonteman98, 12 January 2013 - 07:20 AM
jonteman98 #1
Posted 12 January 2013 - 08:20 AM
code:
function sf()
while not turtle.forward() do
turtle.dig
end
end

then i try to start the program i get:
bios:338: [string "testfunc"]:4: '='
expected

i need this code for a program that digs a room with without grawel getting in the way.
W00dyR #2
Posted 12 January 2013 - 08:21 AM
turtle.dig needs to be turtle.dig()

EDIT: besides that, I think the problem is somewhere else in the code if it still gives an error, therefore, post the entire code if it does :P/>
jonteman98 #3
Posted 12 January 2013 - 08:33 AM
i'm blind. thank you.