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

api on disk

Started by makerimages, 22 July 2012 - 09:05 AM
makerimages #1
Posted 22 July 2012 - 11:05 AM
hi i have a api on a disk its in /apis and if i try to call a function of it in the same disk`s startup i get a attempt to call nil value how to fix??
Ponder #2
Posted 22 July 2012 - 12:40 PM
You mean it is on "/disk/apis/"?
In generell you'll have to load a API before you can use it with "os.loadAPI (<PathToAPI>)". Just add that at the beginning in your script and it should work fine.
makerimages #3
Posted 22 July 2012 - 01:23 PM
its on a disk in a folder named apis