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

Mining programm dont work wy?

Started by Yukova, 31 March 2017 - 09:20 PM
Yukova #1
Posted 31 March 2017 - 11:20 PM
bios.lua:14: [string "mine"]:20: '=' expected


my programm

for i=1,30 do
  for i=1,50 do
	turtle.dig()
	turtle.forward()
	turtle.digUp()
	turtle.digDown()
  end

  turtle.turnLeft()
  turtle.turnLeft()

  for i=1,50 do
	while turtle.detect()==true do
	  turtle.dig()
	turtle.forward()
  end
  turtle.turnRight

  for i=1,3 do
	turtle.dig()
	turtle.forward()
	turtle.digUp()
	turtle.digDown()
  end
  turtle.turnRight()
end
turtle.turnRight()
for i=1,90 do
  while turtle.detect()==true do
	turtle.dig()
  turtle.forward()
end
turtle.turnRight()

if i see right there need "=" in line 20 but i have

pls help,
Immolus #2
Posted 01 April 2017 - 03:21 AM

for i=1,30 do
  for i=1,50 do
	turtle.dig()
	turtle.forward()
	turtle.digUp()
	turtle.digDown()
  end

  turtle.turnLeft()
  turtle.turnLeft()

  for i=1,50 do
	while turtle.detect()==true do
	  turtle.dig()
	turtle.forward()
  end
  turtle.turnRight

  ... snip ...

You're missing the '()' in turtle.turnRight
Yukova #3
Posted 01 April 2017 - 10:23 AM
I'm so stupid Thank you for your precious time
I'm so stupid Thank you for your precious time