66 posts
Posted 01 September 2012 - 10:13 PM
i'm starting to make a OS and i cant get my program to load the the API, here is my code
os.loadAPI("Dc/api/api")
Dc/api/api.MenuTurtle()
MenuTurtle() is a function i made in Dc/api/api
1604 posts
Posted 01 September 2012 - 10:21 PM
The name of the api is the name of the file, not the whole path. In your case it would be api, so you have to use it like:
api.MenuTurlte()
You might want to change it's name.
116 posts
Location
At my Computer coding for the Computer in my Computer
Posted 01 September 2012 - 10:22 PM
I really don't know anything about loading api's, But I think there is something you need to call on your line 2 to use the function. But I really don't know, its just a feeling I have.
EDIT: ninja'd