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

Mining Turtle problem

Started by Fiixii52, 24 June 2013 - 08:09 AM
Fiixii52 #1
Posted 24 June 2013 - 10:09 AM
Sorry if it's bad english : I'm french.

Hello,

I made a mining turtle program but I get an " bios:338: [string "programme" (This is the name of my program)]:161: '=' expected but I did'nt find any syntax error in Ln 161.
Heelp?

Program : http://pastebin.com/HzXS6GaF

Fiixii52
Lyqyd #2
Posted 24 June 2013 - 01:21 PM
Split into new topic.

The line above needs to be term.clear() rather than term.clear. When it gets to line 161, it's still expecting that you're about to change the value of term.clear (since the parentheses are missing), so when it finds something else but still no assignment operator, it throws the error. It's generally a good idea to look at the previous line if you can't find the listed error on the line it specifies.