Raised This Month: $ Target: $400
 0% 

bubble sort


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 08-09-2009 , 15:02   Re: bubble sort
Reply With Quote #7

halo, i am trying to make it with ts top3 ct top3
but i think i am in a wrong way..
PHP Code:
public DisplayHUDid )
{
    static 
iPlayer iFrags szName33 ];
    static 
iPlayerFrags33 ][ ];
    static 
TSszHUD512 ] ,CTszHUD512 ], TSiPos,CTiPos
    
    iPlayerFrags 
g_PlayerFrags;
    
    
SortCustom2DiPlayerFrags 33 "fn_StatsCompare" );

    
TSiPos 0;
    
CTiPos 0
    
for ( new sizeofg_PlayerFrags ) ; i++ )
    {
        
iPlayer iPlayerFrags][ ];
        
iFrags iPlayerFrags][ ];
        
        if ( 
is_user_connectediPlayer ) && iFrags && get_user_team(iPlayer) == 1)
        {
            
get_user_nameiPlayer szName 32 );
            
TSiPos += formatexTSszHUDTSiPos ] , 512-TSiPos "Rank:%d - Frag:%d -Name:%s^n" i+1,iFrags,szName );
        }
    else if( 
is_user_connectediPlayer ) && iFrags && get_user_team(iPlayer) == 2)
        {
            
get_user_nameiPlayer szName 32 );
            
CTiPos += formatexCTszHUDCTiPos ] , 512-CTiPos "Rank:%d - Frag:%d -Name:%s^n" i+1,iFrags,szName );
        }
    }
    
    if ( 
TSiPos )
    {
        
TSszHUDTSiPos ] = 0;
        
set_hudmessage255 0.05 0.15 0.0 1.0 )
        
show_hudmessageTSszHUD );
    }
    if ( 
CTiPos )
    {
        
CTszHUDCTiPos ] = 0;
        
set_hudmessage255 0.75 0.15 0.0 1.0 )
        
show_hudmessageCTszHUD );
    }

__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 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 18:28.


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