h = { "hello", "bye" }
for key, val in pairs(h) do
-- How send "hello" and "bye" in OnEvent ?
end
local function OnEvent(self, event, ...)
print(arg1)
end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", OnEvent)