Hi.
I wrote my code similar to what is in the Help for SMP
At the beginning program makes length check array rooms[]
.
rooms.length > 0
.
If the room does not exist then it is created and the player is put into it.
.idnet.multiplayer.roomCreate('game', null, null, 'nowjoin', createOptions)
For the second player program already works with rooms that exist first and foremost looking for a room with a player who has already created room.
Here, I used in condition variable playerCount
if (rooms[i].playerCount == 1)
but now playerCount
returns 0 when the player is in the room.
I set a breakpoint and saw that playerCount == 0
while object players
contains one player.
Maybe that something has changed in API, since I did not make changes in code. How can I rectify the situation, or maybe there are other solutions?