WoW:API GetLanguageByIndex: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API GetLanguageByIndex to API GetLanguageByIndex without leaving a redirect) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{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, | for x=1, GetNumLanguages() do | ||
DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x)) | DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x)) | ||
end | end | ||
== | == See also == | ||
* [[API GetNumLanguages|GetNumLanguages()]] - Returns the number of languages your character can speak. | |||
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]
- GetNumLanguages() - Returns the number of languages your character can speak.