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

Help! Basic program wont run!

Started by Robinlemon, 10 March 2014 - 06:24 PM
Robinlemon #1
Posted 10 March 2014 - 07:24 PM
bios:339: [string "door"]:10: "=" expected

So i know the ERROR is on line 10 although I Just dont see why

My turtle checks for a redstone signal on the right then breaks the block in front of it move forwards 2 then breaks 4 blocks!
obviously i would put this on a while loop on startup

http://pastebin.com/ApW12LaP

CODE:

  • if redstone.getInput("right",true) then
  • turtle.dig()
  • turtle.foward()
  • turtle.foward()
  • turtle.turnLeft()
  • turtle.up()
  • turtle.dig()
  • turtle.foward()
  • turtle.digDown
  • turtle.turnRight()
  • turtle.dig()
  • turtle.down()
  • turtle.dig()
  • turtle.turnRight()
  • turtle.turnRight()
  • turtle.foward()
  • turtle.foward()
  • turtle.turnRight()
  • turtle.turnRight()
  • turtle.place()
  • else
  • sleep(1)
  • end
Lyqyd #2
Posted 10 March 2014 - 08:09 PM
Moved to Ask a Pro.

Just so you know, the solution to this problem can be found in my favorite sticky post.
briman0094 #3
Posted 10 March 2014 - 08:28 PM
In order to get better help in the future, I recommend you put your code in
code tags
instead of a (!!!) bulleted list and keep the font size at 12.
unobtanium #4
Posted 11 March 2014 - 12:50 AM
Where is theoriginalbit with the quote of Lyqyd:
Lyqyd said:
Here in Ask a Pro, the effort people are willing to expend helping you is usually about the equal to the effort you are putting in.
oeed #5
Posted 11 March 2014 - 09:55 AM
Because no one else has actually answered your question (sort of), you need to change this:

turtle.digDown

To this:

turtle.digDown()
(notice the brackets)
Edited on 11 March 2014 - 08:55 AM
ByteZz #6
Posted 11 March 2014 - 08:11 PM
Because no one else has actually answered your question (sort of), you need to change this:

turtle.digDown

To this:

turtle.digDown()
(notice the brackets)

Just to be a little more specific, the genius above me is referring to line 9.
oeed #7
Posted 11 March 2014 - 08:36 PM
Because no one else has actually answered your question (sort of), you need to change this:

turtle.digDown

To this:

turtle.digDown()
(notice the brackets)

Just to be a little more specific, the genius above me is referring to line 9.

The error occurs on line 10 because it's looking for something after you state a variable name without running it.