Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
Xporcbot (talk | contribs)
m (→‎top: clean up, replaced: {{removed → {{Removed)
Tag: WoW API docs
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
{{Removedapi|7.0.3}} __NOTOC__
{{wowapi}}
 
 
 
Get the list of available GM ticket categories.
 
Get the list of available GM ticket categories.
   
Line 15: Line 14:
   
 
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 18:13, 4 April 2020

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.