Thread: Client Looping
View Single Post
Reiko1231
Member
Join Date: Apr 2013
Location: Russia
Old 05-21-2018 , 07:37   Re: Client Looping
Reply With Quote #4

My mistake, MAXPLAYERS is 65. But because SourceTV is legal fake client, you still have to add +1 to MAXPLAYERS, otherwise last client will be outside of loop.
I don't understand question about MaxClients then. Yes, it is waste of CPU cycles if you check for (< MaxClients+1) since for cycle check this expression every iteration. It is better to check for (<= MaxClients). But MaxClients is equal to max players count (for my local server it is 24, if I try to IsClientInGame(25), I'll recieve error "Client index 25 is invalid").
Reiko1231 is offline