WoW API: GetNumLanguages

From AddOn Studio
Revision as of 05:04, 26 March 2008 by WoWWiki>WoWWiki-Janet (Updated page to reflect correction of the typo.)
Jump to navigation Jump to search

WoW API < GetNumLanguages

Returns the number of languages your character can speak.

This function was incorrectly called GetNumLaguages() up until 2.4.

NumLanguages = GetNumLanguages()

Parameters

Arguments

none

Returns

NumLanguages
NumLanguages
Numeric - Returns the number of languages 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.

GetLanguageByIndex(index)

GetLanguageByIndex(index) - Returns the language specified by the index.

DEFAULT_CHAT_FRAME:AddMessage("text",r,g,b)

ScrollingMessageFrame:AddMessage("text",r,g,b,id)
Valid Frame names:
DEFAULT_CHAT_FRAME
ChatFrame1 - ChatFrame7