Jpopcenter28958@legacy41549315 (talk | contribs) No edit summary |
mNo edit summary |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} __NOTOC__ |
||
− | <center>'''GetNumFriends''' ''-Documentation by jpopcenter-''</center> |
||
⚫ | |||
⚫ | |||
+ | == Parameters == |
||
⚫ | |||
⚫ | |||
+ | :;numberOfFriends : Integer - The number of friends you have (i.e. the highest valid friend index you can use to get friend information). |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
+ | ==== Result ==== |
||
− | ---- |
||
+ | Displays the number of friends you currently have in the default chat frame. |
||
− | ;''Arguments'' |
||
− | |||
− | :;None |
||
− | |||
− | ---- |
||
⚫ | |||
− | |||
− | :(Number numberOfFriends) |
||
− | |||
⚫ | |||
− | |||
− | ---- |
||
⚫ | |||
⚫ | |||
− | |||
− | ;''Result'' |
||
− | |||
− | Prints a message in the default chat frame. |
||
− | |||
− | ---- |
||
− | ;''Description'' |
||
− | |||
− | : Returns number of friends. |
||
− | |||
− | ---- |
||
− | {{Template: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.