Raised This Month: $ Target: $400
 0% 

Count Player Leaves


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-17-2014 , 18:42   Re: Count Player Leaves
Reply With Quote #6

Storing the counts globally based on player index is pointless. As multiple people have told you the indexes are meaningless after a user disconnects. The code you have posted above will break because of this. I repeat: Indexes are not permanent! There is a reason I used the tries to work with steamids instead of player indexes.

If you want a per-user count use my code. Add a global counter if you want, but do it separately from the player counts.

If you want only a global count you can remove everything regarding the g_leave_count trie and just work with the global counter.


/edit: Please try to actually understand what I did with the code. Your changes break it completely and shows that you did not understand it at all.
__________________
In Flames we trust!

Last edited by Nextra; 06-17-2014 at 18:47.
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 21:13.


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