most onUpdate() functions dont take any arg's ...arguments(values passed) I didnt realize Onload even passed variables...prolly just the implicit "this" variable
I wouldnt worry about passing any values to the OnLoad
just
function MyMod_OnLoad()
this:RegisterEvent("VARIABLES_LOADED")
this:RegisterEvent("PLAYER_ENTERING_WORLD")
end
function MyMod_OnEvent(eventname)
if ( eventname == "PLAYER_ENTERING_WORLD") then
DEFAULT_CHAT_FRAME:AddMessage("Welcome to World of Warcraft")
else if (eventname == "VARIABLES_LOADED") then
DEFAULT_CHAT_FRAME:AddMessage("The Variables for MyMod Have now been loaded")
end
end
if your just trying to wrap your brain around programming for wow, this is the best tutorial i have seen
http://wow.mmhell.com/articles/inter...rst_addon.html
maybe say what your trying to do...you might be making it way more complicated than it is
If you need more precise help post here