Wowpedia

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

READ MORE

Wowpedia
m (GetNumLaguages became GetNumLanguages)
m (→‎See also: The "Info" section as it was isn't really necessary.)
Line 23: Line 23:
 
end
 
end
   
== Info ==
+
== See also ==
 
* [[API GetNumLanguages|GetNumLanguages()]] - Returns the number of languages your character can speak.
=== for .. do ===
 
 
:Look for the 'for .. do' block at the [http://www.lua.org/manual/5.0/ Reference Manual].
 
 
=== GetNumLanguages() ===
 
 
:[[API GetNumLanguages|GetNumLanguages()]] - Returns the number of languages your character can speak.
 
 
=== DEFAULT_CHAT_FRAME:AddMessage("text",r,g,b) ===
 
 
:;[[API ScrollingMessageFrame AddMessage|ScrollingMessageFrame:AddMessage("text",r,g,b,id)]] : Valid Frame names:<br>DEFAULT_CHAT_FRAME<br>ChatFrame1 - ChatFrame7
 

Revision as of 07:21, 27 January 2010

Returns the language specified by the index that your character can speak.

Language = GetLanguageByIndex(index)

Parameters

Arguments

index
index
Numeric - The index starting at 1.

Returns

Language
Language
String - Returns the language specified by the index that your character can speak.

Example

for x=1, GetNumLanguages() do
  DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x))
end

See also