19.12.2016, 18:58
So I have heard a lot about MAX_PLAYERS being not the best option out there for player loops and such so I had this idea (not sure of anyone else suggested it before) to improve, but wanted to get more opinions before actually doing it.
So I was thinking about creating a whole new different variable, gMaxPlayers for example, and each time a player connects the variable gets incremented, and when a player disconnects the variable gets decremented.
Then I'd basically use the new variable when needing to do loops for the online/connected players.
Any thoughts if it would bug the server?
So I was thinking about creating a whole new different variable, gMaxPlayers for example, and each time a player connects the variable gets incremented, and when a player disconnects the variable gets decremented.
Then I'd basically use the new variable when needing to do loops for the online/connected players.
Any thoughts if it would bug the server?