# Match create param docs (max size match)

**URL:** <https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932>\
**Category:** Game Design\
**Created:** [January 31, 2024, 12:46am UTC](https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932 "2024-01-31T00:46:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsmaximiliano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/rsmaximiliano/32/2054_2.png) [@rsmaximiliano](https://forum.heroiclabs.com/u/rsmaximiliano)\
**Post date:** [January 31, 2024, 12:46am UTC](https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932/1 "2024-01-31T00:46:42Z")

</div>

I been searching about max size match, because when I use this example:

> **[Match Listing](https://heroiclabs.com/docs/nakama/concepts/multiplayer/match-listing/#find-or-create)**
>
> Match labels can be used to filter active multiplayer matches based on exact matches or queried to find and sort the best possible matches. Listing matches is useful for presenting player lobbies and searching existing matches prior to creating a new...

Its creating me a match with only 1 max player, when I try to connect another player give match is full.

I readed the docs here about match create:

> **[Match Handler API](https://heroiclabs.com/docs/nakama/server-framework/go-runtime/function-reference/match-handler/)**
>
> This page lists all functions for Nakama's Server Authoritative multiplayer match handler.

and the parameter **params** is a map, and I cannot find docs about the parameters accepted in this param.

TLDR I need to set maxPlayers to \> 1 when use

```auto
nk.matchCreate('supermatch', {});

```

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [January 31, 2024, 1:45pm UTC](https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932/2 "2024-01-31T13:45:49Z")

</div>

Hey @rsmaximiliano Nakama matches do not enforce a max size by default. Can you share the exact error you receive about the match being full?

---

<div class="post-metadata">

**Author:** ![rsmaximiliano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/rsmaximiliano/32/2054_2.png) [@rsmaximiliano](https://forum.heroiclabs.com/u/rsmaximiliano)\
**Post date:** [January 31, 2024, 11:14pm UTC](https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932/3 "2024-01-31T23:14:19Z")

</div>

Yes! Sorry for the late response.

`An error occurred: NakamaException(StatusCode={5}, Message='{match full}', GrpcStatusCode={-1})`

---

<div class="post-metadata">

**Author:** ![rsmaximiliano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/rsmaximiliano/32/2054_2.png) [@rsmaximiliano](https://forum.heroiclabs.com/u/rsmaximiliano)\
**Post date:** [January 31, 2024, 11:21pm UTC](https://forum.heroiclabs.com/t/match-create-param-docs-max-size-match/4932/4 "2024-01-31T23:21:20Z")

</div>

Oh bro, sorry, Its my bad… When you confirmed to me the max size not being 1, I look the code and figured out that the limit is in the code.

```auto
	// Check if match is full.
	if len(s.presences)+s.joinsInProgress >= 2 {
		return s, false, "match full"
	}

```

Commented that if block and worked like a charm!

Sorry for the mistake.

Thank you!
