WoW:API GetGMTicketCategories: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Example: Better example...)
 
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
<center>'''GetGMTicketCategories''' ''-Documentation by [[user:Mikk|Mikk]]-''</center>
<center>'''GetGMTicketCategories''' ''-Documentation by [[user:Mikk|Mikk]]-''</center>


Line 27: Line 28:
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}

Revision as of 18:15, 6 January 2007

WoW API < GetGMTicketCategories

GetGMTicketCategories -Documentation by Mikk-

Get the list of available GM ticket categories.

category1, category2, ... = GetGMTicketCategories()

Parameters

Returns

A variable number of categories (Strings).


Example

function ShowAllMyArgs(...)
  for i=1,getn(arg) do
    DEFAULT_CHAT_FRAME:AddMessage( arg[i] );
  end
end

ShowAllMyArgs( GetGMTicketCategories() );

Displays all available GM ticket categories in the chat window.