Raised This Month: $ Target: $400
 0% 

Top15 Sorting From nVault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-29-2013 , 22:05   Top15 Sorting From nVault
Reply With Quote #1

i have this method of getting data from nvault
Code:
public LoadCount( id ) {     new Key[ 64 ], Value[ 64 ], Name[ 32 ];     get_user_name( id, Name, charsmax( Name ) );     formatex( Key, charsmax( Key ), "%s - LMS:", Name );     nvault_get( g_Vault, Key, Value, charsmax( Value ) );         g_iLastManCount[ id ] = str_to_num( Value ); }

and this is the top part of my top15 function for sorting part...
atm it only sorts the CONNECTED players.. but i want it to sort the top15 from ALL players in the nvault

Code:
public Show_Top15_LMS( id ) {     static Sort[ 33 ][ 2 ];     new players[ 32 ], num, count, index;     get_players( players, num );         for( new i = 0; i < num; i++ )     {         index = players[ i ];         Sort[ count ][ 0 ] = index;         Sort[ count ][ 1 ] = g_iLastManCount[ index ];         count++;     }

anyone explain how i can achieve this ?
__________________
Blizzard_87 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 10:47.


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