Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::uint64_t membershipDesc_result[unknown] = {}; // struct size needs more research
- void loop()
- {
- int membershipIndex = -1; // 0 to 9, or -1 for their active membership
- std::uint64_t netHandle[13] = {};
- NETWORK_HANDLE_FROM_PLAYER(selectedPlayer, &netHandle[0], 13); // probably use a nethandle of a player that isn't in current session
- if (!NETWORK_CLAN_ANY_DOWNLOAD_MEMBERSHIP_PENDING())
- {
- if (NETWORK_CLAN_REMOTE_MEMBERSHIPS_ARE_IN_CACHE(&netHandle[0]))
- {
- if (NETWORK_CLAN_GET_MEMBERSHIP_COUNT(&netHandle[0]) > 0)
- {
- if (NETWORK_CLAN_GET_MEMBERSHIP_VALID(&netHandle[0], membershipIndex))
- {
- NETWORK_CLAN_GET_MEMBERSHIP(&netHandle[0], &membershipDesc_result[0], membershipIndex);
- }
- }
- }
- else
- {
- NETWORK_CLAN_DOWNLOAD_MEMBERSHIP(&netHandle[0]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement