Wikia

WoWWiki

API GetNumFriends

Talk0
101,499pages on
this wiki
Revision as of 20:49, December 25, 2006 by Starlightblunder (Talk | contribs)

WoW API < GetNumFriends

Returns how many friends you have.

numberOfFriends = GetNumFriends()

Parameters

Returns

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 the number of friends you currently have in the default chat frame.

Around Wikia's network

Random Wiki