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 ?
__________________