236 posts
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??
49 posts
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.
236 posts
Posted 22 July 2012 - 01:23 PM
its on a disk in a folder named apis