WoW:API message: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{framexmlfunc|FrameXML/BasicControls.xml}} __NOTOC__)
(Added information about cvar "scriptErrors")
Line 25: Line 25:


: (?) As of 1.10, message("text") no longer seems to work inside instances under certain conditions.  The fix for this is currently unknown.  
: (?) As of 1.10, message("text") no longer seems to work inside instances under certain conditions.  The fix for this is currently unknown.  
: As of 2.1, the cvar "scriptErrors" must be set to 1 for this to work.  This can be accomplished through a call to [[API SetCVar |SetCVar]]().


: This is just an alias of the [[API ERRORMESSAGE|_ERRORMESSAGE]] function.
: This is just an alias of the [[API ERRORMESSAGE|_ERRORMESSAGE]] function.

Revision as of 03:54, 8 June 2007

WoW API < message

"I" iconThis function is implemented in Lua here FrameXML/BasicControls.xml.


message("text");

Displays a message box.


Parameters

Arguments

("text")
text
String - message to be displayed.

Returns

nil


Example

message("This is an example.");


Details

Pops up a message box displaying the argument with an "Okay" button inside a frame.
(?) As of 1.10, message("text") no longer seems to work inside instances under certain conditions. The fix for this is currently unknown.
As of 2.1, the cvar "scriptErrors" must be set to 1 for this to work. This can be accomplished through a call to SetCVar().
This is just an alias of the _ERRORMESSAGE function.