View Single Post
10-17-12, 09:18 PM   #2
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
I can't speak for the overall functionality but the way you are using so many "local _, nWhatever = ..." statements appears very odd to me.

When you use ... outside of a function like that, it is returning is the addon name and a table specific to that addon. In other words, in your code, locals like nBuff, nChat, nData etc. are all being set to the same table, and probably not the table you expect.

There's nothing magic about ... where you can pull out whatever table you like, but rather, it is a convention used on a per-addon basis to create a sort of table namespace for that specific addon. I don't know where you've put this .lua file (perhaps in nExtras) but the one and only table you are going to get out of ... is the one for that addon. Copying that ... line out from another addon won't give you access to that addon's table. So if you need access to other tables, you need to access them as globals or however else they are exposed.
  Reply With Quote