1 posts
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.
7083 posts
Location
Tasmania (AU)
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.
1080 posts
Location
In the Matrix
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