need help with saving a file (+rep)
#1

Hello,i have this kinda system.it saves the settings, but when it saves it creates new numbers,not edit the old ones,how to make it edit the old one what is already saved?

pawn Код:
public SaveSettings()
{
        new File: file2;
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%d|%d|%d|%d|%d|%d|%d|",
        Settings[Tax],
        Settings[SFPDpc],
        Settings[FBIpc],
        Settings[EMSpc],
        Settings[FIREpc],
        Settings[hBill],
        Settings[GovCash]);
        file2 = fopen("MPRP/Settings.cfg", io_append);
        fwrite(file2, coordsstring);
        fclose(file2);
        return 1;
}
Reply


Messages In This Thread
need help with saving a file (+rep) - by WardenCS - 27.03.2012, 12:21
Re: need help with saving a file (+rep) - by Harish - 27.03.2012, 12:45
Re: need help with saving a file (+rep) - by Reklez - 27.03.2012, 12:54
Re: need help with saving a file (+rep) - by [ABK]Antonio - 27.03.2012, 12:57
Re: need help with saving a file (+rep) - by Harish - 27.03.2012, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)