Edited by XeroTR, 02 August 2017 - 09:29 PM.
0
4 replies to this topic
#1
Posted 02 August 2017 - 05:41 AM
Resolved, Please delete/ignore
#2
Posted 02 August 2017 - 06:27 AM
Odds are you're calling a function which returns nil, and then trying to index into that result as if it were a table. You probably want to do something like this:
Of course, it's difficult to be specific about the problem without seeing your code or the actual error it throws.
local inv = pim.inventoryGetterFunctionThingy() if inv then -- Sift through the inv table and do stuff. . . .
Of course, it's difficult to be specific about the problem without seeing your code or the actual error it throws.
#3
Posted 02 August 2017 - 05:26 PM
Bomb Bloke, on 02 August 2017 - 06:27 AM, said:
Odds are you're calling a function which returns nil, and then trying to index into that result as if it were a table. You probably want to do something like this:
Of course, it's difficult to be specific about the problem without seeing your code or the actual error it throws.
local inv = pim.inventoryGetterFunctionThingy() if inv then -- Sift through the inv table and do stuff. . . .
Of course, it's difficult to be specific about the problem without seeing your code or the actual error it throws.
ok, I'll edit the main thread with it.
#4
Posted 02 August 2017 - 09:28 PM
Ok, This has been resolved, I'm just stupid and found the really easy answer.
#5
Posted 03 August 2017 - 09:22 AM
XeroTR, on 02 August 2017 - 09:28 PM, said:
Ok, This has been resolved, I'm just stupid and found the really easy answer.
It's best to leave the original post and add a reply describing the solution in case anyone else has the same issue and comes across this thread.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users