@ShowCheatlog(playerid);
@ShowCheatlog(playerid)
{
new rows, fields;
cache_get_data(rows, fields);
if(!rows
) return SendClientMessage(playerid
, COLOR_GREY
, !"Èíôîðìàöèè ïî äàííîìó çàïðîñó íå íàéäåíî."); new name[MAX_PLAYER_NAME], time[20], codename[60], type[20];
stringer[0] = EOS;
strcat(stringer
, "Âðåìÿ\tÍèê\t×èò\tÒèï\n"); for(new i = 0; i < rows; i++)
{
cache_get_field_content(i, "time", time, dbHandle);
cache_get_field_content(i, "name", name, dbHandle);
cache_get_field_content(i, "codename", codename, dbHandle);
cache_get_field_content(i, "type", type, dbHandle);
format(stringer
, sizeof(stringer
), "%s{ffffff}%s\t%s\t%s\t%s\n", stringer
, time
, name
, codename
, type
); }
ShowPlayerDialog(playerid
, dNull
, DIALOG_STYLE_TABLIST_HEADERS , !"Ñòàòèñòèêà ðàáîòû àíòè÷èòà.", stringer
, "Õ", ""); return 1;
}