16.04.2014, 18:52
pawn Код:
public SaveZones()
{
new File: file2 = fopen("Altele/gzones.cfg", io_append), coordsstring[128];
for (new idx; idx != sizeof(ZoneInfo); ++idx)
{
format(coordsstring, sizeof(coordsstring), "%s|%f|%f|%f|%f|%d\n", ZoneInfo[idx][zOwner], ZoneInfo[idx][zMinX], ZoneInfo[idx][zMinY], ZoneInfo[idx][zMaxX], ZoneInfo[idx][zMaxY], ZoneInfo[idx][zTeam]);
if (file2) fwrite(file2, coordsstring);
}
if (file2) fclose(file2);
}
@S4t3K: Yeah, I noticed that later on and I fixed it.