08.03.2015, 20:06
Here is the picture who show me dialog, but don`t show me how long player was on the server http://prntscr.com/6edcmd
PHP код:
new mins, hour, day;
new aktivnost[1024];
new sendernames[MAX_PLAYER_NAME];
format(aktivnost,1024,"%s{FF0000}|----------------------------------------------------------------------|\n\n",aktivnost);
for(new place = 0; place != 30; ++place)
{
/*if (0 == playerOnlineTimes[place][1]) {
break;
}*/
ConvertTime(playerOnlineTimes[place][1], mins, hour, day);
format(aktivnost,1024,"%s{FFFFFF}%d.%s:%d dana %d h %d min %d sec\n",aktivnost,place + 1, day, hour, mins, GetPlayerName(playerOnlineTimes[place][0], sendernames, sizeof(sendernames)));
}
format(aktivnost,1024,"%s{FF0000}|----------------------------------------------------------------------|\n\n",aktivnost);
ShowPlayerDialog(playerid, 713, DIALOG_STYLE_MSGBOX, "{FF0000}GAMING {FFFFFF} Top Lista 30 sa najvise ne-afk vreme na serveru", aktivnost, "OK", "OK");
return 1;
}