Jump to content




PIM Help



4 replies to this topic

#1 XeroTR

  • Members
  • 3 posts

Posted 02 August 2017 - 05:41 AM

Resolved, Please delete/ignore

Edited by XeroTR, 02 August 2017 - 09:29 PM.


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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:

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 XeroTR

  • Members
  • 3 posts

Posted 02 August 2017 - 05:26 PM

View PostBomb 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:

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 XeroTR

  • Members
  • 3 posts

Posted 02 August 2017 - 09:28 PM

Ok, This has been resolved, I'm just stupid and found the really easy answer.

#5 The Crazy Phoenix

  • Members
  • 136 posts
  • LocationProbably within 2 metres of my laptop.

Posted 03 August 2017 - 09:22 AM

View PostXeroTR, 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