I am having trouble displaying text on the screen on certain events. You know how when you Zone, or complete a quest you get colored text on the screen?
How do I do that?
I read on WoWWikki and found MessageFrame:AddMessage() but it is not working.
Here is the code I used
Code:
MessageFrame:AddMessage("Test" , 1.0, 1.0, 1.0, 1.0, 5);
and I get the error
attempt to index global MessageFrame' (a nil value)
|
any ideas what I am doing wrong?