Raised This Month: $ Target: $400
 0% 

Proper client iteration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-17-2013 , 21:46   Re: Proper client iteration
Reply With Quote #1

Client indexes start at 1 so it'd be <= MAXPLAYERS or MaxClients. Listen servers start at 0, but it's not a case you should take into consideration since clients shouldn't be hosting on listen servers.

*Edit: Rather, you should use MAXPLAYERS + 1 for declarations inside the global scope, MAXPLAYERS within OnPluginStart, and MaxClients for anything afterwards.
__________________

Last edited by thetwistedpanda; 09-17-2013 at 21:48.
thetwistedpanda is offline
Reply



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 14:27.


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