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

[ERROR] 'end' expected (to close 'function' at line 10)

Started by truhgoj, 07 October 2012 - 07:05 PM
truhgoj #1
Posted 07 October 2012 - 09:05 PM
I'm trying to get a turtle to build me an area for a pumpkin farm on a server ( we are using CC version 1.3)

The full Erromessage is:
bios:206: [string "b03"]:36: 'end'
expected (to close 'function' at
line 10)

Here is the sourcecode http://pastebin.com/kdpKqn0R

The turtle is completly filled up with Grassblocks.

I cannot find where the 'end' is missing, would be great if someone can help me.
Lyqyd #2
Posted 07 October 2012 - 09:49 PM
The ends do seem to be properly matched, but function declarations do not have a "do" on the end of the line, which is probably what's causing problems. Eliminate the two "do"s that don't belong.
truhgoj #3
Posted 07 October 2012 - 09:56 PM
thx seems to be working now
http://pastebin.com/nJMZ0ZVs