Okay so this code shows all players on the server
something like this:
1. name
2. name
and i want to do the player who open the menu name red
and the others grey.
And i want to add text behind there names that telling them there precent
Code:
new percent = 100 * earned/total
like this
1. name [%i] Done
2. name [%i] Done
how can i do that??
Code:
new iMenu = menu_create("\rPERCENT PLAYER MENU", "handlePlayerMenu");
new iPlayers[32], iNum, iPlayer, szName[32], szKey[3];
get_players(iPlayers, iNum);
for( new i; i < iNum; i++ )
{
iPlayer = iPlayers[i];
get_user_name(iPlayer, szName, charsmax(szName));
num_to_str(iPlayer, szKey, charsmax(szKey));
menu_additem(iMenu, szName, szKey);
}
menu_setprop(iMenu, MPROP_EXITNAME, "Back");
menu_display(id, iMenu, 0);
}
__________________