Thread Tools Display Modes
06-26-14, 09:05 AM   #1
rozen
A Defias Bandit
Join Date: Jun 2014
Posts: 2
Cannot see my addon on the addons list

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:
  1. local EventFrame = CreateFrame("Frame")
  2. EventFrame:RegisterEvent("PLAYER_LOGIN")
  3. EventFrame:SetScript("OnEvent", function(self,event,...)
  4. GuildRoster()
  5. end
  6. )
  7.  
  8. local RosterFrame = CreateFrame("Roster_Frame")
  9. RosterFrame:RegisterEvent("GUILD_ROSTER_UPDATE ")
  10. RosterFrame:SetScript("OnEvent", function(self,event,...)
  11.     if type(GMdata.tabla) ~= "table" then  --  I know it doesn't exist. so set it's default
  12.         GMdata = {}
  13.         basura, numMembers,otraBasura = GetNumGuildMembers()
  14.         for i =0 , numMembers , 1 do
  15.         GMdata.tabla[i].name = GetGuildRosterInfo(i).fullName
  16.         end
  17.        
  18.         ChatFrame1:AddMessage('GMdata dice que'..GMdata.tabla[27].."es puto")
  19.     end
  20. end
  21. )

Thank you,
Rozen
  Reply With Quote
06-26-14, 09:08 AM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Make sure your toc file has the exact same name as the addon folder.
  Reply With Quote
06-26-14, 10:58 AM   #3
rozen
A Defias Bandit
Join Date: Jun 2014
Posts: 2
lol thanks!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Cannot see my addon on the addons list


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off