View Single Post
06-28-10, 04:56 PM   #238
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
Originally Posted by Miralen View Post
Well I get no errors and everything loads fine when I dont have this bit in there:
Code:
        OnLoad=function(self)
            self:RegsiterEvent'CHAT_MSG_CHANNEL_NOTICE'
        end,
        OnEvent=function(self)
            if event == "CHAT_MSG_CHANNEL_NOTICE" then
            if arg1 == "YOU_JOINED" and arg7 == 2 then
                Recount_MainWindow:Hide()
            elseif arg1 == "YOU_LEFT" and arg7 == 2 then
                Recount_MainWindow:Show()
                end
            end
        end, 
the only time I get an error is with that code in there but I guess for now I will just do without it sadly but if someone has the answer sometime I'd appreciate it, I will probably dink about a little more with it and try to get it going a little while longer but I don't hold out much hope.
The only thing I can think of is the comma's after the function end's(highlighted for easy reference). Try removing them and see how it goes.
  Reply With Quote