Can someone fix that code?
It shows me the list of players on the server, and then I click on it it will show me the details of his
Kills + online time + deaths
change the Your rank to
szName stats is

I edited the code and did I do /top
I will show players list and then show me the names and I will press and show me their data by the image.
https://forums.alliedmods.net/showpo...73&postcount=5
Code:
public CmdPlayerMenu( client )
{
new szMenu[ 64 ];
formatex( szMenu, charsmax( szMenu ), "\yPlayers Stats\w Menu");
new iMenu = menu_create( szMenu, "SubPlayerMenu" );
new players[ 32 ], pnum, tempid, szTempid[ 10 ];
get_players( players, pnum );
for( new i ; i < pnum; i++ )
{
tempid = players[ i ];
num_to_str(tempid, szTempid, charsmax(szTempid));
formatex(szMenu, charsmax(szMenu), "\r%s \wStats",szName( tempid ))
menu_additem( iMenu, szMenu, szTempid, 0 );
}
menu_display( client, iMenu );
}
public SubPlayerMenu( client, iMenu, Item )
stock szName( const index )
{
static Name[ 32 ];
get_user_name( index, Name, charsmax( Name ) );
return Name;
}