WoW:API GetLanguageByIndex: Difference between revisions
Jump to navigation
Jump to search
GetLanguageByIndex - Documentation by VelvetPaw
No edit summary |
mNo edit summary |
||
Line 38: | Line 38: | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|GetLanguageByIndex]] | |||
[[Category:API Chat Functions|GetLanguageByIndex]] | |||
[[Category:API Communication Functions|GetLanguageByIndex]] |
Revision as of 17:41, 29 August 2005
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, GetNumLaguages() do DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x)) end
Info
for .. do
- Look for the 'for .. do' block at the Reference Manual.
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)
- ScrollingMessageFrame:AddMessage("text",r,g,b,id)
- Valid Frame names:
DEFAULT_CHAT_FRAME
ChatFrame1 - ChatFrame7