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

Attempt To Call Nill

Started by Appleeater, 24 March 2013 - 12:24 AM
Appleeater #1
Posted 24 March 2013 - 01:24 AM
Hey everyone, i am writing a script and i have come across this error:


startup:12:attempt to call nill

but im not sure where. Can someone help me fix this?

pastebin
theoriginalbit #2
Posted 24 March 2013 - 01:25 AM
all functions must be declared above where they are used :)/>
Appleeater #3
Posted 24 March 2013 - 01:26 AM
Ok thanks
Appleeater #4
Posted 24 March 2013 - 01:27 AM
Could i make this into a api to keep the code clean?
theoriginalbit #5
Posted 24 March 2013 - 01:33 AM
possibly. apis still need order to them iirc. functions must be declared before they are used.