Raised This Month: $ Target: $400
 0% 

Solved Total points of all players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tepegoz
Senior Member
Join Date: Apr 2019
Old 05-29-2021 , 16:16   Total points of all players
Reply With Quote #1

I have this PlayerPoints[id][x] function but I want to collect the points of all the players in both t and ct teams. If there are 6 players in teams, it will be sum of total2/6 = total. How to collect on total can you make a example script?

PHP Code:
        new total,total2
        
for(x=1x<=UPGRADESx++) {
    
    if(
PlayerPoints[id][x] == 8)
    
total2 += 125
    
if(PlayerPoints[id][x] == 7)
    
total2 += 100
    
if(PlayerPoints[id][x] == 6)
    
total2 += 75
    
if(PlayerPoints[id][x] == 5)
    
total2 += 50
    
if(PlayerPoints[id][x] == 4)
    
total2 += 25
    
}    
        
total = +.....total2 ?


Last edited by tepegoz; 05-29-2021 at 18:41.
tepegoz 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 02:36.


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