WoW:API GetGMTicketCategories: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Example: Better example...)
 
m (Move page script moved page API GetGMTicketCategories to API GetGMTicketCategories without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''GetGMTicketCategories''' ''-Documentation by [[user:Mikk|Mikk]]-''</center>
{{wowapi}}


Get the list of available GM ticket categories.
Get the list of available GM ticket categories.
Line 15: Line 15:


  function ShowAllMyArgs(...)
  function ShowAllMyArgs(...)
   for i=1,getn(arg) do
   for i=1, select("#",...) do
     DEFAULT_CHAT_FRAME:AddMessage( arg[i] );
     DEFAULT_CHAT_FRAME:AddMessage( select(i, ...) );
   end
   end
  end
  end
Line 27: Line 27:
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < GetGMTicketCategories

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, select("#",...) do
    DEFAULT_CHAT_FRAME:AddMessage( select(i, ...) );
  end
end

ShowAllMyArgs( GetGMTicketCategories() );

Displays all available GM ticket categories in the chat window.