WoW:API GetGMTicketCategories: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetGMTicketCategories to API GetGMTicketCategories without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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

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.