Optimizing MAX_PLAYERS?
#1

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?
Reply


Messages In This Thread
Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 18:58
Re: Optimizing MAX_PLAYERS? - by Konstantinos - 19.12.2016, 19:02
Re: Optimizing MAX_PLAYERS? - by BloodMaster - 19.12.2016, 19:02
Re: Optimizing MAX_PLAYERS? - by PrO.GameR - 19.12.2016, 19:04
Re: Optimizing MAX_PLAYERS? - by iLearner - 19.12.2016, 19:06
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:07
Re: Optimizing MAX_PLAYERS? - by oMa37 - 19.12.2016, 19:10
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:14
Re: Optimizing MAX_PLAYERS? - by Konstantinos - 19.12.2016, 19:22
Re: Optimizing MAX_PLAYERS? - by MattTucker - 19.12.2016, 19:26

Forum Jump:


Users browsing this thread: 2 Guest(s)