20.12.2016, 06:29
I'm in hurry, (not sure tho, try this)
PHP код:
new HighestValue, pname[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerValue[i] > HighestValue || i==0)
GetPlayerName(i, pname, sizeof(pname));
HighestValue = PlayerValue[i];
}
}
printf("Highest value owner: %d. Value: %d", pname, HighestValue);