Raised This Month: $ Target: $400
 0% 

Dividing players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 04-28-2011 , 15:38   Dividing players
Reply With Quote #1

Hey, would someone help me, to do a plugin that divides users by their numbers for example, Like I've 10 players,

PHP Code:
PLAYER_NAME                  NUMBER
reinert1                         150
reinert2                         600
reinert3                         50
reinert4                         200
reinert5                         300
reinert6                         450
reinert7                         500
reinert8                         300
reinert9                         100
reinert10                       200 
I Would like to make that they will be divided to 2 parts ( 5 / 5 ), and the first part total number would be equal or similar to the second parts number.

Total NUMBER is 2850, so I'll divide them by 2, and then Part1 should be around 1425 and part2 aswell..

So part1 will be: reinert1 + reinert2 + reinert4 + reinert8 + reinert10 (total number 1450)
and part2 will be: reinert3 + reinert5 + reinert6 + reinert7 + reinert9 (1400)

Help help help !

Last edited by reinert; 04-28-2011 at 15:41.
reinert is offline
 


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 04:24.


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