ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3511

Help with Friend List

by XBLxPhantom - 02-16-2019 - 10:10 PM
#11
(05-10-2019 - 11:39 PM)NoNameV2345 Wrote:
(05-10-2019 - 11:31 PM)BModzMasterTM Wrote: i got the code working lol
[Image: 60020559_453884585389778_848339054517393...e=5D6011C2]

nice design, it's clean.
add for (int i = 0; i NETWORK::NETWORK_GET_FRIEND_COUNT(); i++)
gor get all friend (even if there are offline).

ye i know bro anyway thx i also decided to set as an entire value, max friends for xbox is 100 so i set it to 100 & thats it lol like in online players list max players is 18
Reply
#12
(02-27-2019 - 04:20 AM)XBLxPhantom Wrote:
Code:
for (int i = 0; i < NETWORK::NETWORK_GET_FRIEND_COUNT(); i++) {
if (NETWORK::NETWORK_IS_FRIEND_INDEX_ONLINE(i)) {
ADD_OPTION(pend(" ~g~[ONLINE]");
}
if (!NETWORK::NETWORK_IS_FRIEND_INDEX_ONLINE(i)) {
ADD_OPTION(pend(" ~r~[OFFLINE]");
}
}
This is now How i have it. [TBV3 Had given me a hand] through this i found the main issue, It's when I'm trying to grab whether or not the client is In the same session or not.... Calling this  -- NETWORK::NETWORK_IS_FRIEND_ONLINE(i) && NETWORK::NETWORK_IS_GAMER_IN_MY_SESSION(i))  is where I'm assuming the issue is from. 

// NETWORK::NETWORK_IS_GAMER_IN_MY_SESSION(i)) 

This checks with the user ID...  NETWORK_IS_GAMER_IN_MY_SESSION(&handle[0])

// int handle[76];

// NETWORK_HANDLE_FROM_PLAYER(i, &handle[0], 13);
Reply

Users browsing: 3 Guest(s)