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

Problem Loading API

Started by Appleeater, 28 March 2013 - 08:32 AM
Appleeater #1
Posted 28 March 2013 - 09:32 AM
Hi, I have recently wrote my own API for computercraft however I have tried to load it with


os.loadAPI(mind)
mind.getRSinputs()
but I get the error attempt to call nill. Does anyone know why? Here is my code

http://pastebin.com/Z9EX07Yc
Mads #2
Posted 28 March 2013 - 10:06 AM
You have to put the mine on the first line in quotes, so os.loadAPI("mine"). Otherwise it will try to use the string that is stored in mine, and I suppose there is none.