Raised This Month: $ Target: $400
 0% 

How Can I calculate percentage to next rank ( based on frags) )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danonix
Senior Member
Join Date: Dec 2012
Old 01-26-2013 , 08:21   Re: How Can I calculate percentage to next rank ( based on frags) )
Reply With Quote #7

PHP Code:
public rank(param[])
{
    static 
stats[8], body[8], rankposrankmax    
    
new id param[0]
    new 
ranga[30]
    if ( 
stats[0] >= && stats[0] <= 29)
        
format(ranga,29,"Lamus")
    else if ( 
stats[0] >= 30 && stats[0] <= 59)
        
format(ranga,29,"Poczatkujacy")
    else if ( 
stats[0] >= 60 && stats[0] <= 119)
        
format(ranga,29,"Wiesniak")
    else if ( 
stats[0] >= 120 && stats[0] <= 209)
        
format(ranga,29,"Sierota")
    else if ( 
stats[0] >= 210 && stats[0] <= 324)
        
format(ranga,29,"Kox")

Thats how it looks.

Cheers

Last edited by danonix; 01-26-2013 at 08:31.
danonix 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 20:30.


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