Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Create Match Fails on uint max player count

$
0
0
I'm reliably getting an error when I try to use a reference to set the maximum player count for a match. I tried casting my values to unsigned int which the value calls for but it appears to still not work.

Code (CSharp):
  1. CreateMatchRequest cmr = new CreateMatchRequest();
  2. cmr.name = System.Environment.UserName + " Game";
  3. //Doesn't work
  4. cmr.size = (uint)_gameSettings.PlayerCount; <- int
  5. //Works
  6. cmr.size = 4;
  7. cmr.advertise = true;
  8. cmr.password = "";
  9. cmr.matchAttributes = new Dictionary<string,...
Create Match Fails on uint max player count

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>