Program:
os.loadAPI("test")
test.setId(5)
API:
idTable = {}
function setId(id)
idTable[getCallProgram()] = id
end
With getCallProgram() being a function that returns the program that called that function.
Edited by flaghacker, 22 April 2014 - 03:07 PM.











