is setting expectedMaxPlayers to 0 legal?

liortal53liortal53
edited November 2013 in Native
Hi,

Is it allowed to have a value of 0 passed to expectedMaxPlayers?

This seems to work fine (when using for joinRandomRoom).

If it is OK, what is the meaning? it means looks for rooms with no limit?

Also, does that work the same for creating/joining rooms by name?

Thanks
Lior

Comments

  • Hi Lior.
    liortal53 wrote:
    Is it allowed to have a value of 0 passed to expectedMaxPlayers?
    Yes.
    liortal53 wrote:
    it means looks for rooms with no limit?
    Yes.
    liortal53 wrote:
    Also, does that work the same for creating/joining rooms by name?
    For creating yes, the meaning there is, set no maximum player limit at all; for joining by name there just isn't a maxPlayers parameter, because it wouldn't make sense.
Sign In or Register to comment.