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

Attempted to call number

Started by oWave, 30 June 2013 - 12:20 PM
oWave #1
Posted 30 June 2013 - 02:20 PM
Hello,

I've writen this program, but randomly it gives me the error: 115: attempted to call number
115 is the Saplings() line

The errors seems to happen randomly. Sometimes the program loops fine. Sometimes it errors right at the beginning. I can't see a pattern there…

Here the code: http://pastebin.com/AtR0aCfF
Tjakka5 #2
Posted 30 June 2013 - 03:43 PM
It might trowh this error when there are no sapling in the turtle.

In your sapling function, first check if it aint nil.