View Single Post
11-01-10, 08:43 AM   #2
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
You can paste code at www.pastebin.com or www.pastey.net for example.

But if the code used to be something like

lua Code:
  1. myframe:SetScript("OnEvent", function()
  2.     this:SetAwesomeStuff()
  3. end)

and you only changed the "this" to "self" it wont work, you also need to have it in the function call, like this (added some other stuff that would be relevant as well, such as 'event')

lua Code:
  1. myframe:SetScript("OnEvent", function(self, event)
  2.     self:SetAwesomeStuff()
  3. end)

But paste the code or no one can really help you properly.
__________________
Oh, the simulated horror!
  Reply With Quote