Posted 14 April 2013 - 07:18 AM
Hello All,
I am writing an API for movement and all is going great. The only issue I am running into is printing.
I want my cords to print on every movement so after the move I call the above function screen() and want it to link back to my original program called Travel.
I get the following error: MoveAPI attempt to index ? (a nill value)
Also a side note, since this is an API I need it to not call a specific program i.e. Travel.screen()
Any help is much appreciated.
I am writing an API for movement and all is going great. The only issue I am running into is printing.
local display = true
function updateDisplay()
--**************USER EDIT HERE****************--
--Display goes here or link to a function in main program via
--if display then exampleFunction() end
print(display)
if display then screen() end
end
I want my cords to print on every movement so after the move I call the above function screen() and want it to link back to my original program called Travel.
I get the following error: MoveAPI attempt to index ? (a nill value)
Also a side note, since this is an API I need it to not call a specific program i.e. Travel.screen()
Any help is much appreciated.