UserCount not updated

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
khokhani1510
Posts: 17
Joined: 06 Feb 2014, 11:08
Location: Gujarat, India
Contact:

UserCount not updated

Postby khokhani1510 » 14 Feb 2017, 05:24

Hello,


I have been suffering from issue with data synchronisation with room extension.

Requirement:

Need to lock room when game starts.

Scenario:

On server extension i am checking with player count, if sufficient players are available then i am starting gameplay. After starting gameplay i have to lock the room so that other player won't be able to join room. For that i am changing room capacity to it's max.
I have some usage of room capacity at client side also. So room capacity need to be updated at both side.
But when i am changing it to room extension it it's been changed at java extension side but not updated to client side & not getting roomcapacitychange event at client side.
Is their anything i am missing at client side? I need to synchronise and update room capacity change to both side.


Tools:
Unity3d 5.4.0
Netbeans 8.2
SmartFoxServer2X
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: UserCount not updated

Postby Lapo » 14 Feb 2017, 08:31

Can you please show the code used for changing the Room capacity?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 98 guests