setdvar function no longer working for sv_maxclients being changed mid game???
-
when the game passes a certain round i had a function call
setdvar("sv_maxclients",getplayers().size);
which did work till a recent update
what changed to now make this function call a 0x00000005 access violation? -
MrMrE sorry it was a 0xc000005 violation which is undefined variable which I had been using. My bad and sorry but this does all still work fine
-
Hello, I do not recommend changing sv_maxclients mid-game. Why do you need this?
-
He wants to disallow new players to join mid-game (and then leave again because they struggle) which increases the difficulty and round length a lot for the players already playing. Thats rather common practice on ZM servers. IMHO a better approach is to set a password instead of changing the player count.