Muert39620@legacy41559547 (talk | contribs) No edit summary |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} __NOTOC__ |
||
− | <center>'''GetNumFriends''' - ''Documentation by jpopcenter''</center> |
||
− | |||
Returns how many friends you have. |
Returns how many friends you have. |
||
⚫ | |||
⚫ | |||
== Parameters == |
== Parameters == |
||
=== Returns === |
=== Returns === |
||
⚫ | |||
− | :numberOfFriends |
||
+ | :;onlineFriends : Integer - The number of online friends. |
||
⚫ | |||
== Example == |
== Example == |
||
⚫ | |||
− | <!-- begin code --> |
||
⚫ | |||
− | <!-- end code --> |
||
==== Result ==== |
==== Result ==== |
||
+ | Displays the number of friends you currently have in the default chat frame. |
||
− | :Displays "I've got 3 friend(s)" |
||
− | |||
− | ---- |
||
− | {{WoW API}} |
Revision as of 06:05, 24 June 2010
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns how many friends you have.
numberOfFriends, onlineFriends = 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).
- onlineFriends
- Integer - The number of online friends.
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.