my addon does nothing
hi
at first i have to say that this is the first addon i create do dnt expect to much. i have this code Code:
frame = CreateFrame("Frame") |
Code looks correct to me. Could you please post your .toc-file?
|
you should make frame local
Code:
local frame = CreateFrame("Frame") |
frame:Onevent is different than frame.onevent. your not calling your function. Also please use less generic names. Also PLEASE localize your variables. By having a global like that floating in name space you could break more than just your own addon.
|
i changed my code to that:
Code:
local tracker = CreateFrame("Frame") |
Try ChatFrame1:AddMessage() instead of print().
|
print() should do fine normally.
But this time you need to explicitly add "self" to the function, because you removed the "frame:" (which acts as 'self'). Code:
local tracker = CreateFrame("Frame") |
im so stupid -.-
it works now. it was the toc file ^^ thank you very much |
All times are GMT -6. The time now is 01:46 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI