Raised This Month: $51 Target: $400
 12% 

Help, sort maps by number of votes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 07-26-2017 , 11:15   Help, sort maps by number of votes
Reply With Quote #1

Help, sort maps by number of votes, I want the map with the most votes to be this first.

CODE
PHP Code:
                    set_hudmessage(0,255,0,0.23,0.02,0,0.0,fTime,0.0,0.0,1); 
                    
show_hudmessage(0,"%L",LANG_PLAYER,"PUG_HUD_MAP"); 
                     
                    new 
szMaps[256],iVotes
                     
                    for(new 
x;PUG_iMapCount;++x
                    { 
                        if(
PUG_iMapVotes[x]) 
                        { 
                            
iVotes++; 
                             
                            
format 
                            

                                
szMaps
                                
charsmax(szMaps), 
                                
"%s%s - %d %s^n"
                                
szMaps
                                
PUG_szMapNames[x], 
                                
PUG_iMapVotes[x], 
                                (
PUG_iMapVotes[x] > 1) ? "votos" "voto" 
                            
); 
                        } 
                    } 
                     
                    new 
szNone[32]; 
                    
formatex(szNone,charsmax(szNone),"%L",LANG_PLAYER,"PUG_HUD_NONE"); 
                     
                    
set_hudmessage(255,255,255,0.23,0.05,0,0.0,fTime,0.0,0.0,2); 
                    
show_hudmessage(0,iVotes szMaps szNone); 
666 is offline
Reply



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 11:39.


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