Raised This Month: $ Target: $400
 0% 

Rates Check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-08-2007 , 16:17   Re: Rates Check
Reply With Quote #11

Quote:
Originally Posted by pRED* | NZ View Post
The loop doesn't need to?

I use get_players when I retrieve the info from the players. The first loop goes through players from 0 up to num and loads the info into five arrays.

The second loop that you are referring to just loops from 0 to the number of players and prints the info from those 5 arrays. Theres no reason to re-use get_players..

-e- This plugin has been running on all of ubernet servers (60.234.24.6) for about 2 months and been extensively tested and I have never heard of non-existent players stats being attempted to be reported
This is unacceptable and you should run get_players again. I don't think you're accounting for something like this:

3 players (ids 1,2,3). Player 2 leaves. Num is now 2 (ids 1,3). It prints the data in id #2, which is a player that doesn't exist, but misses 3.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 


Thread Tools
Display Modes

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 10:56.


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