- Home /
Question by
starikcetin · Oct 27, 2015 at 08:16 PM ·
androidnetworkingmultiplayergoogle play games
GPGS - Start the match with only even numbers of players
How to get over it? I'm making a shooter game and i want teams to be fair at the start of the match.
Edit: I can only check player amounts when room is established. I don't want room to be established without even numbers of players.
Comment
So, what do you want to know? You can check if a number is even or odd with
if(x % 2 == 0) {
//even
}
if(x % 2 != 0) {
//uneven
}
That's not my concern. I can only check player amounts when room is established. I don't want room to be established without even numbers of players.