Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-15-17, 03:42 PM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Question BNGetFriendInfo issue

Code:
-- get number of online friends
local _,num=BNGetNumFriends()

-- cycle through friends to find "Bob"
for i=1,num do
    local id,name=BNGetFriendInfo(i)
    if (name=="Bob") then
        BNSendWhisper(id, "Hi Bob!")
    else
        print("Bob is not online.")
    end
end
Even if Bob is online, it never sends him the message and goes to "Bob is not online." Any ideas?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » BNGetFriendInfo issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off