heroiclabs / nakama-cpp

Generic C/C++ client for Nakama server.
https://heroiclabs.com/docs/cpp-client-guide
Apache License 2.0
69 stars 25 forks source link

Custom query matchMaker #33

Closed raz0r007 closed 4 years ago

raz0r007 commented 4 years ago

There's a problem when I try to find opponents using a custom query. When I use query = "*" it works. But if I try to use a custom query, for example query = "+test:test" it doesn't work anymore. Could we check it?

Topic in forums: https://forum.heroiclabs.com/t/custom-query-matchmaker/917

lugehorsam commented 4 years ago

@raz0r007 In your query string, you'll need to access the test key via properties.

Your query should look like: query = "+properties.test:test"

You can take a look at the code snippets from the docs.

raz0r007 commented 4 years ago

Thanks ! I fixed it.

lugehorsam commented 4 years ago

@raz0r007 awesome.