27.03.2012, 12:21
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;
}