05-01-2023, 09:15 AM
/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg
I finished implementing all code you posted but in my side don't work as expected:
When the user log in the game, (juno for example) the counter remain 0 even if 3 or more players are online. When another player log in or log off the counter correctly update.
Another thing:
Inside ProConnMsg.cpp of GS you put:
case MSG_CONN_ONLINE_PLAYERS_RES:
SendOnlinePlayersToClients(msg);
break;
The function SendOnlinePlayersToClients following your code is defined in Descriptor.cpp, at this point:
Or SendOnlinePlayersToClients must be defined in ProConnMsg.cpp and method firm in ProConnMsg.h
Or must be accessed with namespace CDescriptor::SendOnlinePlayersToClients(msg); but this does not work, at least for me (since is not static function).
sorry to bother again but I'm trying to understeand what I miss in the implementation, I followeed more than one time code posted. In that case maybe you forgot to paste a portion of code? Becouse in your video the system works perfectly.
Thanks in Advance.

