View Single Post
01-19-10, 06:35 PM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,937
this is the same mistake I made. The table variables you associate in the toc as saved variables cannot be local variables in the lua file but instead classed as global.

One of the first lines in any of my WTF data file addons is the following:

MySavedVars = MySavedVars or {}

This way it will use whatever has been previously stored or create a new table. Repeat for whatever tables you have within that. Do the same for variables so that you have a set of defaults to use if it cannot find any data values.

Then throughout the code you can use the various values to set and get as appropriate.

So try removing the local part in front of GTgameArray and similarly off of the others.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote