20.02.2015, 12:50
Ok so I am using this code but I want it so I can add changes in game but when I add a new update it adds it to the bottom but I want to at it at the top or if there is option to re arrange the dialog items from bottom to top for example like this
If I added a new change like Fixed admin system
but instead it writes it like that
but I want the last updates I add to appear at the top and here is the pwn code
If I added a new change like Fixed admin system
Код:
Fixed admin system Added new commands Removed some bugs
Код:
Added new commands Removed some bugs Fixed admin system
pawn Код:
if(dialogid == UPDATES_ADD && response)
{
new string[128];
format(string, sizeof(string), "%s\r\n", inputtext);
new File:tmp=fopen("updates.txt", io_append);
if(tmp)
{
fwrite(tmp, string);
fclose(tmp);
}
}