Raised This Month: $ Target: $400
 0% 

HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-28-2018 , 23:33   Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Reply With Quote #6

Quote:
Originally Posted by CrAzY MaN View Post
Nope, MAXClients is for the number of slots your server have.
E.G. I have 16 slots server. So, MAXClients=16

get_maxplayers() is used for the total number of players playing in your server.
E.G. I have 16 slots server. Number of players playing now is 10. So get_maxplayers() <=10

I hope it is correct!
That is incorrect. get_maxplayers() will be the number of available slots on the server (in your example, it will always be 16). To get the number of players currently in the server you use get_playersnum().

You need to do some basic checking before you post. Please don't post if you know that you're not sure.
__________________

Last edited by fysiks; 04-28-2018 at 23:33.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode