Server crashes
#4

http://dracoblue.net/dev/amxamxfilec...-in-fputscell/

and:
pawn Код:
public SaveBiz()
{
    new File: file2 = fopen("Biz.ini", io_append);
    if (file2) // if valid handle
    {
        new idx, coordsstring[256];
        while (idx < sizeof(BizInfo))
        {
            format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%s|%d|%d|%d|%d|%d|%d|%s|%d|%d|%d|%d|%d|%d|%d\n",
            BizInfo[idx][bLocation_x],
            BizInfo[idx][bLocation_y],
            BizInfo[idx][bLocation_z],
            BizInfo[idx][bExitAngle],
            BizInfo[idx][bIntLocationx],
            BizInfo[idx][bIntLocationy],
            BizInfo[idx][bIntLocationz],
            BizInfo[idx][bEnterAngle],
            BizInfo[idx][bVirtualWorld],
            BizInfo[idx][bInterior],
            BizInfo[idx][bOwner],
            BizInfo[idx][bOwned],
            BizInfo[idx][bLocked],
            BizInfo[idx][bPrice],
            BizInfo[idx][bType],
            BizInfo[idx][bCameras],
            BizInfo[idx][bTill],
            BizInfo[idx][bName],
            BizInfo[idx][bFee],
            BizInfo[idx][bPInt],
            BizInfo[idx][bPVW],
            BizInfo[idx][bProducts],
            BizInfo[idx][bLottoTime],
            BizInfo[idx][bLottoJackpot],
            BizInfo[idx][bNewLottoJackpot]);
           
            idx++;
           
            fwrite(file2, coordsstring);
            fclose(file2);
        }
    }
}
Reply


Messages In This Thread
Server crashes - by FaZeRs - 27.06.2014, 08:48
Re: Server crashes - by Konstantinos - 27.06.2014, 09:17
Re: Server crashes - by FaZeRs - 29.06.2014, 17:42
Re: Server crashes - by Konstantinos - 29.06.2014, 17:47
Re: Server crashes - by FaZeRs - 29.06.2014, 17:49
Re: Server crashes - by FaZeRs - 30.06.2014, 18:25
Re : Server crashes - by Clad - 30.06.2014, 18:29
Re: Server crashes - by Konstantinos - 30.06.2014, 18:35
Re: Server crashes - by FaZeRs - 30.06.2014, 18:39
Re: Server crashes - by Konstantinos - 30.06.2014, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)