Raised This Month: $ Target: $400
 0% 

Player indexing problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-10-2014 , 17:36   Re: Player indexing problem
Reply With Quote #2

Code is necessary. We have no idea what you are talking about, and I don't feel like guessing what you are on to.

As a general answer: Player indexes go from 1 to get_maxplayers() and a player keeps this index for the entire time they are connected to the server. So when iterating over the indexes you have to check if they are connected.


/edit: If you manage to solve the problem on your own, please still provide a bit of code and what you did to solve your issue. It can help people searching for this in the future.
__________________
In Flames we trust!

Last edited by Nextra; 06-10-2014 at 17:38.
Nextra 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 09:42.


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