Add line to the top of the file
#1

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
Код:
Fixed admin system
Added new commands
Removed some bugs
but instead it writes it like that
Код:
Added new commands
Removed some bugs
Fixed admin system
but I want the last updates I add to appear at the top and here is the pwn code

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);
        }
    }
Reply


Messages In This Thread
Add line to the top of the file - by ahmedkoki - 20.02.2015, 12:50
Re: Add line to the top of the file - by Kyance - 20.02.2015, 12:59
Re: Add line to the top of the file - by Vince - 20.02.2015, 14:57
Re: Add line to the top of the file - by ahmedkoki - 21.02.2015, 20:26
AW: Add line to the top of the file - by Nero_3D - 21.02.2015, 22:32

Forum Jump:


Users browsing this thread: 2 Guest(s)