how to check num of users in a room - appwarp

0 votes

hi guys

Im building a turn base online game. 

i created a 2 users room, the problem is when i am trying to connect to the room i am checking if there are rooms avilables, if not create a new room, if there are join the avilable room, when i run the game somthimes it creates to saparate rooms (because both players check and there are no rooms avilable )and the player cant play agains each other.

 

is there a way to check if the room is empty or not ?

thanks in advance

 

Gal 

asked Sep 27, 2014 in AppWarp by galshalit (22 points)
recategorized Oct 26, 2014 by sushil

1 Answer

+1 vote
 
Best answer
Hi,

The recommended way is use JoinRoomInRange api first,If there is no room available then it will return room joined failed in this case you should create the new room.
answered Sep 27, 2014 by errahulpanchal (169 points)
selected Sep 27, 2014 by galshalit
thanks that helped alot.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...