WoW:API GetNumFriends: Difference between revisions
Jump to navigation
Jump to search
GetNumFriends - Documentation by jpopcenter
No edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
---- | ---- | ||
{{WoW API}} | {{WoW API}} | ||
__NOTOC__ |
Revision as of 19:48, 7 January 2006
Returns how many friends you have.
numberOfFriends = GetNumFriends()
Parameters
Returns
- numberOfFriends
- numberOfFriends
- Integer - The number of friends you have (i.e. the highest valid friend index you can use to get friend information).
Example
DEFAULT_CHAT_FRAME:AddMessage("I've got " .. GetNumFriends() .. " friend(s)");
Result
- Displays "I've got 3 friend(s)"