Get Current Online user of the channel under the Radar?
#21


1 hour ago, Andrein95 said:




/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg

Sorry to bother you, but maybe I'm a little bit confusing, why we introduce the varaible:


int PlayersCounter;


inside CNetwork.h and then we use ServerSelect.h?

 




To store the value received from the server. To later, in each frame, obtain the total number of players online. You could do the same thing in different ways, I chose that one. As for "iPlayerNum" it is simple, when we enter the server or channel selection scene, the number of players is sent from the server side. then that variable is not updated anymore. I guess you could reuse iPlayerNum instead of defining a new variable. In short, redundancy on my part due to lack of knowledge at that time...



Messages In This Thread
[No subject] - by Andrein95 - 05-06-2022, 10:24 AM
[No subject] - by Scura - 05-06-2022, 11:26 AM
[No subject] - by nicolasg - 06-29-2022, 01:50 AM
[No subject] - by nicolasg - 06-29-2022, 04:38 AM
[No subject] - by Andrein95 - 06-29-2022, 09:47 AM
[No subject] - by nicolasg - 06-29-2022, 12:30 PM
[No subject] - by Andrein95 - 06-30-2022, 07:09 AM
[No subject] - by Veni - 06-30-2022, 09:07 AM
[No subject] - by Andrein95 - 06-30-2022, 09:13 AM
[No subject] - by nicolasg - 06-30-2022, 12:02 PM
[No subject] - by OberonPh - 07-01-2022, 06:38 AM
[No subject] - by Andrein95 - 07-01-2022, 07:21 AM
[No subject] - by Andrein95 - 07-01-2022, 07:22 AM
[No subject] - by nicolasg - 07-01-2022, 12:18 PM
[No subject] - by nicolasg - 07-01-2022, 12:21 PM
[No subject] - by nicolasg - 07-01-2022, 12:35 PM
[No subject] - by OberonPh - 07-02-2022, 01:27 AM
[No subject] - by OberonPh - 07-02-2022, 01:28 AM
[No subject] - by OberonPh - 07-02-2022, 01:30 AM
[No subject] - by Andrein95 - 04-30-2023, 10:06 PM
[No subject] - by nicolasg - 04-30-2023, 10:18 PM
[No subject] - by Andrein95 - 04-30-2023, 10:30 PM
[No subject] - by nicolasg - 04-30-2023, 10:44 PM
[No subject] - by Andrein95 - 05-01-2023, 09:15 AM
[No subject] - by Andrein95 - 05-01-2023, 09:47 AM
[No subject] - by Andrein95 - 05-01-2023, 10:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)