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

[Help][turtle]help bug[Help][turtle]

Started by chriskopp7, 13 December 2012 - 09:07 PM
chriskopp7 #1
Posted 13 December 2012 - 10:07 PM
this may be a dum misstake on my end but it keeps return "[string "mine"]:9: '=' expected" the line is turtle.forward() but it should only get that error if it is like this turtle.forward so ideas? i have been missing with for over 10 mins with re writeing the line etc…

here is my code i am still working on it :)/>

function row()
turtle.dig()
turtle.up()
turtle.dig()
turtle.run("turn left 1")
turtle.dig()
turtle.forward()
turtle.dig
turtle.forward()
turtle.dig()
shell.run("turn left 2")
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.dig()
shell.run("turn left 2")
turtle.forward()
turtle.forward()
turtle.forward()
turtle.forward()
shell.run("turn left 1")
turtle.forward()
end
row()
chriskopp7 #2
Posted 13 December 2012 - 10:14 PM
i do know there is a person below me with a branch mining code but i want to make my own reather than stelling his and mine is less neat -,-
Goof #3
Posted 13 December 2012 - 10:15 PM
What is turtle.run ?
i dont know that function.
you should edit turtle.run to
shell.run?
chriskopp7 #4
Posted 13 December 2012 - 10:18 PM
What is turtle.run ?
i dont know that function.
you should edit turtle.run to
shell.run?
it is shell.run it was just one of mu dumb misstakes i tend to make -,-. i fixed it but i am still geting the error in the post…
Goof #5
Posted 13 December 2012 - 10:21 PM
Well then i cant see any problem with your code. Did you edit some bios/ turtle settings ?
im glad that i could help a bit.

-mikk809h
chriskopp7 #6
Posted 13 December 2012 - 10:23 PM
Well then i cant see any problem with your code. Did you edit some bios/ turtle settings ?
im glad that i could help a bit.

-mikk809h
no did not touch it at all…. so it is a bug on my side…. let me make a vid showing it…
Goof #7
Posted 13 December 2012 - 10:23 PM
Wait. You missed an () after turtle.dig at line 8. Its saying = expected, because it thinks its a variable. But that "variable" do not have a end.
chriskopp7 #8
Posted 13 December 2012 - 10:34 PM
Wait. You missed an () after turtle.dig at line 8. Its saying = expected, because it thinks its a variable. But that "variable" do not have a end.
and that fixed it *faceplaim*
Goof #9
Posted 14 December 2012 - 12:03 AM
:D/>