03.09.2018, 16:16
i made an log of bank stats
i want to put the last withdrawn money log at 1st but its showing it at last
but i want the latest on top anyone help me please
help me please i want to get the last withdraw or deposited money at 1st but whenever i do withdraw it makes it at last
please help me
i want to put the last withdrawn money log at 1st but its showing it at last
but i want the latest on top anyone help me please
PHP код:
new maxs = savesystem;
if (maxs == 0) return SendClientMessage2(playerid, COLOR_RED, "Error: You didn't have any state.");
new tmp3[100], tmp5[256], tmp6[256], tmmp[256], sname[256], tmp4[100];
for (new t=1; t <= maxs; t++)
{
format(tmp, sizeof(tmp), "dstat_%d", t);
format(tmp5, sizeof(tmp5), "wstat_%d", t);
format(tmp6, sizeof(tmp6), "snstat_%d", t);
format(tmmp, sizeof(tmmp), "Date%d", t);
if(my saving system, tmp6))
{
format(sname, sizeof(sname), "%s", tmp6);
}
else
{
sname= " ";
}
format(tmp3, sizeof(tmp3), "%s%s\t%d\t%d\t%s\n", tmp3, tmmp, tmp, sname);
format(tmp4, sizeof(tmp4), "Date\tIn\tOut\tRecipient\n%s", tmp3);
}
ShowPlayerDialog2(playerid, DIALOG_BANKSTATES, DIALOG_STYLE_TABLIST_HEADERS, "Your Bank State", tmp4, "Ok", "");
please help me