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

Turtle Program Issue

Started by mcmaster47, 22 August 2014 - 09:48 PM
mcmaster47 #1
Posted 22 August 2014 - 11:48 PM
I'm running this program: http://pastebin.com/8jGLkhCs on an advanced wireless felling turtle.

When I try to run the program, I get this error: "bios:339: [string "plant"]:54: function arguments expected".

If anyone could tell my why I'm getting this error, that'd be great.
Bomb Bloke #2
Posted 23 August 2014 - 01:16 AM
You stuck a colon on line 52 (as opposed to a semi-colon, which is what you wanted), and the VM expected further arguments to come after that. But instead, the next thing you provided was the new function call on line 54.

You're most likely aware, but the semi-colons are optional in Lua.

You could shrink your script down a bit with some "for" loops. Some info on those is in this tutorial.
Dragon53535 #3
Posted 23 August 2014 - 01:32 AM
You stuck a colon on line 52 (as opposed to a semi-colon, which is what you wanted), and the VM expected further arguments to come after that. But instead, the next thing you provided was the new function call on line 54.
-snip-

Lines 55, and 72 also have a colon instead of a semi-colon