WoW:API GetNumFriends: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 32: Line 32:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|GetNumFriends]]
[[Category:API Friend Functions|GetNumFriends]]

Revision as of 14:43, 27 August 2005

GetNumFriends -Documentation by jpopcenter-

Returns number of friends.

numberOfFriends = GetNumFriends();


Arguments
None

Returns
(Number numberOfFriends)
numberOfFriends
The number of friends.

Example
DEFAULT_CHAT_FRAME:AddMessage("I've got " .. GetNumFriends() .. " friend(s)");
Result

Prints a message in the default chat frame.


Description
Returns number of friends.

Template:WoW API