07.03.2015, 17:32
Oh sorry, it's place not i.
I have no idea how you store your playernames, if you have some function like PlayerName just pass playerOnlineTimes[place][0]
pawn Код:
for(new place = 0; place != 30; ++place)
{
if (0 == playerOnlineTimes[place][1]) {
//We don't want players with 0 seconds played
//Also we can't trust [0], because we didn't set it to INVALID_PLAYER_ID
//And I don't want to explain memset here
break;
}
ConvertTime(playerOnlineTimes[place][1], mins, hour, day);
format(aktivnost, sizeof aktivnost, "%s{FFFFFF}%d.%s:%d dana %d h %d min %d sec\n2.%s:%d dana %d h %d min %d sec\n", aktivnost, place + 1, /* Maybe get player name here */, day, hour, mins, playerOnlineTimes[place][1]);
}