Originally Posted by Soulofsin_007
1.
Code:
Events = CreateFrame("Frame")
Events:SetScript("OnEvent", function(self, event, ...)
if event == "PLAYER_ENTERING_WORLD" then
print("Hello"...UnitName("player"))
end
end)
Events:RegisterEvent("PLAYER_ENTERING_WORLD")
|
My head just exploded because you created those frames in the global namespace instead of locally.