Orginalet

Untitled

Mar 7th, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. local APITable = {}
  2.  
  3. function APILoader(...)
  4. param = {...}
  5. for i = 1, #param, 1 do
  6. if not os.loadAPI(param[i]) then
  7. error("Could not load API: "..tostring(param[i]))
  8. else
  9. apiTable[i] = param[i]
  10. end
  11. end
  12. end
  13.  
  14. APITable[1].someFunction()
Advertisement
Add Comment
Please, Sign In to add comment