View Single Post
05-30-10, 05:02 PM   #270
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,937
Your code.
Code:
local function recordingSessionInfo()
    sessionCount = sessionCount + 1;  
    sessionInfo = sessionInfo or {}
    sessionValue = tonumber(sessionCount);
    sessionInfo = { 
    }
    tinsert( sessionInfo, currentDate, sessionCount )
end
tinsert only needs 2 parameters, the destination table and the source data.
tinsert(table,data)
data however can be anything, a number, a string. Even a table.

So, try changing the tinsert line to something like the following and see how different it looks in the variables file.
tinsert( sessionInfo, { currentDate, sessionCount } )
or
tinsert( sessionInfo, { ["Current Date"] = currentDate, ["Session Count"] = sessionCount } )

This would make the table look as follows:
Code:
sessionInfo = {
     currentDate,       --1
     sessionCount,     --2
}   --1
or

Code:
sessionInfo = {
     ["Current Date "] = currentDate,       --1
     ["Session Count"] = sessionCount,     --2
}   --1

Dependant on which way you do it.
__________________


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