m
Add information about note length limitation
(Added code example) |
m (Add information about note length limitation) |
||
| Line 6: | Line 6: | ||
=== Arguments === | === Arguments === | ||
:;friendIndex : Integer - Index of friend in the friend list (Note that status changes can re-order the friend list, indexes are not guaranteed to remain stable across events) (Also note that index should not be greater than 50 [see Notes]). | :;friendIndex : Integer - Index of friend in the friend list (Note that status changes can re-order the friend list, indexes are not guaranteed to remain stable across events) (Also note that index should not be greater than 50 [see Notes]). | ||
:;noteText : String - The text that the friends note will be set to. | :;noteText : String - The text that the friends note will be set to, up to 48 characters. | ||
=== Returns === | === Returns === | ||
| Line 21: | Line 21: | ||
Friend information isn't necessarily automatically kept up to date. You can use the [[API ShowFriends|ShowFriends]] function to request an update from the server. | Friend information isn't necessarily automatically kept up to date. You can use the [[API ShowFriends|ShowFriends]] function to request an update from the server. | ||
Do not use indexes greater than 50 (the maximum number of friend list entries)! | |||
Notes greater than 48 characters in length will be truncated to 48 characters. | |||
In some AddOn constellations I got WoW crashing by typing "/script GetFriendInfo(51)" (especially if FlagRSP was activated). | In some AddOn constellations I got WoW crashing by typing "/script GetFriendInfo(51)" (especially if FlagRSP was activated). | ||