SA-MP Forums Archive
log help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: log help (/showthread.php?tid=658421)



log help - CaptainBoi - 03.09.2018

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
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", ""); 
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


Re: log help - ShihabSoft - 03.09.2018

Your code doesn't really make any sense. Could you provide the exact excerpt of the code