WoW:API GetNumFriends: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Minor reformatting.)
No edit summary
Line 15: Line 15:
==== Result ====
==== Result ====
:Displays "I've got 3 friend(s)"
:Displays "I've got 3 friend(s)"
----
----
__NOTOC__
{{WoW API}}
{{Template:WoW API}}
[[Category:API Friend Functions|GetNumFriends]]

Revision as of 12:40, 4 January 2006

GetNumFriends - Documentation by jpopcenter

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)"

Template:WoW API