Raised This Month: $ Target: $400
 0% 

HELP with stats and FFA


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
A in Chains
Junior Member
Join Date: Mar 2014
Old 03-04-2014 , 11:01   Re: HELP with stats and FFA
Reply With Quote #3

Well I Find how to change the order, and how to change the numers # from position.

PHP Code:
format_top15(sBuffer[MAX_BUFFER_LENGTH 1])
{
    new 
iMax get_statsnum()
    
    new 
izStats[8], izBody[8]
    new 
iLen 0
    
new iRTop iMax 16
    
    
        

    
new lKills[16], lDeaths[16], lHits[16], lShots[16], lEff[16], lAcc[16]
    
    
format(lKills15"%L"LANG_SERVER"KILLS")
    
format(lDeaths15"%L"LANG_SERVER"DEATHS")
    
format(lHits15"%L"LANG_SERVER"HITS")
    
format(lShots15"%L"LANG_SERVER"SHOTS")
    
format(lEff15"%L"LANG_SERVER"EFF")
    
format(lAcc15"%L"LANG_SERVER"ACC")
    
    
ucfirst(lEff)
    
    
ucfirst(lAcc)

    
iLen format(sBufferMAX_BUFFER_LENGTH"<body bgcolor=#000000><font color=#FFB000><pre>")
    
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH iLen"%2s %-22.22s %6s %6s %6s %6s %4s %4s %4s^n""#""Nick"lKillslDeathslHitslShots"HS"lEfflAcc)
    
    for (new 
iMax 1iRTop && MAX_BUFFER_LENGTH iLen 0i--)
    {
        
get_stats(iizStatsizBodyt_sNameMAX_NAME_LENGTH)
        
replace_all(t_sNameMAX_NAME_LENGTH"<""[")
        
replace_all(t_sNameMAX_NAME_LENGTH">""]")
        
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH iLen"%2d %-22.22s %6d %6d %6d %6d %4d %3.0f%% %3.0f%%^n"iMax it_sNameizStats[STATS_KILLS], 
                        
izStats[STATS_DEATHS], izStats[STATS_HITS], izStats[STATS_SHOTS], izStats[STATS_HS], effec(izStats), accuracy(izStats))
    }

Now I need to change the sort of order, I attached an image to see the problem, between 1st and 2nd place you can notice the mistake
Attached Thumbnails
Click image for larger version

Name:	HalfLife57.jpg
Views:	244
Size:	39.8 KB
ID:	131124  

Last edited by A in Chains; 03-04-2014 at 11:08. Reason: my mistake
A in Chains 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 05:54.


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