WoW:API GetGMTicketCategories: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Cleanup - cleanup args vs vararg useage)
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

Revision as of 04:43, 1 June 2008

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.