24.10.2014, 07:55
Why save some thing doesn't get save ?
This code was saved
pawn Код:
stock SaveDoors()
{
new idx = 0, File:file;
new string[256];
while(idx < MAX_DOORS)
{
format(string, sizeof(string), "%d|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%f|%s|%f|%d|\r\n",
DoorInfo[idx][dType],
DoorInfo[idx][dOX],
DoorInfo[idx][dOY],
DoorInfo[idx][dOZ],
DoorInfo[idx][dIX],
DoorInfo[idx][dIY],
DoorInfo[idx][dIZ],
DoorInfo[idx][dOInt], //doesn't save
DoorInfo[idx][dOVW], // doesn't save
DoorInfo[idx][dIInt], // doesn't save
DoorInfo[idx][dIVW], // doesn't save
DoorInfo[idx][dCInt], //doesn't save
DoorInfo[idx][dCExt], //doesn't save
DoorInfo[idx][dIA], //doesn't save
DoorInfo[idx][dText], //doesn't save
DoorInfo[idx][dOA], //doesn't save
DoorInfo[idx][fTeam]); //doesn't save
if(idx == 0)
{
file = fopen("doors.cfg", io_write);
}
else
{
file = fopen("doors.cfg", io_append);
}
fwrite(file, string);
fclose(file);
idx++;
}
}
Код:
1314|77.500000|2397.139892|16.484375|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||1.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0| 0|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0|0|0|0|0|0|0.000000||0.000000|0|