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.