WoW:API GetLanguageByIndex: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetLanguageByIndex to API GetLanguageByIndex without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''GetLanguageByIndex''' - ''Documentation by VelvetPaw''</center>
{{wowapi}}


Returns the language specified by the index that your character can speak.
Returns the language specified by the index that your character can speak.
Line 19: Line 19:
=== Example ===
=== Example ===


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


== Info ==
== See also ==
=== for .. do ===
* [[API GetNumLanguages|GetNumLanguages()]] - Returns the number of languages your character can speak.
 
:Look for the 'for .. do' block at the [http://www.lua.org/manual/5.0/ Reference Manual].
 
=== GetNumLaguages() ===
 
:[[API GetNumLaguages|GetNumLaguages()]] - Returns the number of languages your character can speak (I guess Blizzard's programmers mistyped that function name).
 
=== 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
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetLanguageByIndex]]
[[Category:API Chat Functions|GetLanguageByIndex]]
[[Category:API Communication Functions|GetLanguageByIndex]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetLanguageByIndex

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

Language = GetLanguageByIndex(index)

Parameters[edit]

Arguments[edit]

index
index
Numeric - The index starting at 1.

Returns[edit]

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

Example[edit]

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

See also[edit]