Hi! I started my first addon, trying to do something related to guilds
I made this code (based on a guide and the wowprogramming documentation) but the addon list on character selecction doesn't show my addon (and i cannot see any result when i log in)
I googled and didn't found the solution.
And probably it's full of errors xD
Code:
## Interface: 50400
## Title: Guild-Management-Data
## Author: Rozen
## Notes: Version 0.01
## Version: 0.01
## OptDeps: BugSack, !BugGrabber
## SavedVariables: GMData
GMData.lua
Lua Code:
local EventFrame = CreateFrame("Frame")
EventFrame:RegisterEvent("PLAYER_LOGIN")
EventFrame:SetScript("OnEvent", function(self,event,...)
GuildRoster()
end
)
local RosterFrame = CreateFrame("Roster_Frame")
RosterFrame:RegisterEvent("GUILD_ROSTER_UPDATE ")
RosterFrame:SetScript("OnEvent", function(self,event,...)
if type(GMdata.tabla) ~= "table" then -- I know it doesn't exist. so set it's default
GMdata = {}
basura, numMembers,otraBasura = GetNumGuildMembers()
for i =0 , numMembers , 1 do
GMdata.tabla[i].name = GetGuildRosterInfo(i).fullName
end
ChatFrame1:AddMessage('GMdata dice que'..GMdata.tabla[27].."es puto")
end
end
)
Thank you,
Rozen