Hi,
this is my my Saved Variables now:
Lua Code:
CRE_GuildRoster = {
{
["Noxis"] = {
["Class"] = "Priest",
["Note"] = "Main",
["Gilde"] = "Sometimes Prepared",
["Level"] = 70,
},
}, -- [1]
}
i want it to look like this i added the ["Players"] node
Lua Code:
CRE_GuildRoster = {
["Players"] ={
["Noxis"] = {
["Class"] = "Priest",
["Note"] = "Main",
["Gilde"] = "Sometimes Prepared",
["Level"] = 70,
},
},
}
this is my function:
Lua Code:
local t = {}
function CreateGRTable()
wipe(t)
numTotal = GetNumGuildMembers();
for i = 1, numTotal do
name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile, isSoREligible, standingID = GetGuildRosterInfo(i)
tinsert(t, i, {[Split(name, "-")[1]] = {Level = level, Gilde = guildName, Class = class, Note = officernote}})
end
CRE_GuildRoster[Players] = t
end
can anyone explain me how to do this?
thanks