[Help]Command /Activity
#4

Oh sorry, it's place not i.
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]);    
}
I have no idea how you store your playernames, if you have some function like PlayerName just pass playerOnlineTimes[place][0]
Reply


Messages In This Thread
[Help]Command /Activity - by Markoni990 - 07.03.2015, 14:48
Re: [Help]Command /Activity - by Misiur - 07.03.2015, 16:37
Respuesta: [Help]Command /Activity - by Markoni990 - 07.03.2015, 17:11
Re: [Help]Command /Activity - by Misiur - 07.03.2015, 17:32
Respuesta: [Help]Command /Activity - by Markoni990 - 07.03.2015, 17:44
Re: [Help]Command /Activity - by Misiur - 07.03.2015, 17:47
Respuesta: [Help]Command /Activity - by Markoni990 - 07.03.2015, 17:50
Re: [Help]Command /Activity - by Misiur - 07.03.2015, 17:53
Respuesta: [Help]Command /Activity - by Markoni990 - 07.03.2015, 17:57
Respuesta: [Help]Command /Activity - by Markoni990 - 07.03.2015, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)