[HELP] Crash
#10

Ok, but on a normal day are 3 takezones everyday .

My question is what is the sence of SaveZones() in PlayerSpawn , i just copy the takezone system and i dont understand it really well . I want to understand the system , and I think you can make me understand .
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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);
}
EDIT: The problem was the invalid file handle (the file was not opened correctly). Checking if it's valid will solve it.

@S4t3K: Yeah, I noticed that later on and I fixed it.

It dosen't save the zone . I test it !
Reply


Messages In This Thread
[HELP] Crash - by AdytzaSS - 16.04.2014, 18:38
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 18:44
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 18:48
Re : [HELP] Crash - by S4t3K - 16.04.2014, 18:50
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 18:52
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 18:55
Re : [HELP] Crash - by S4t3K - 16.04.2014, 18:56
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 19:03
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 19:10
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)