Ohhh, I think I get it.
I'm checking that link you put there, it is useful, I think I'm getting things, slowly, but I am ^^.
I tried this code you put there, but I'm getting another error D:
Code:
user:/AddOns/IM/IM.lua:35: attempt to index a nil value
stack traceback:
user:/AddOns/IM/IM.lua:35: in function '(main chunk)'
I never get what this error means, and I've got it in many addons I tried to do. The line this error reffers to is:
Code:
EVENT_MANAGER:RegisterForEvent(IM.name, EVENT_ZONE_CHANGED, IMOnZoneChanged)
Been checking, but I don't see what is wrong there. Trying hard on making my first well done addon.
Sorry for all these questions x'D