29.06.2014, 17:47
http://dracoblue.net/dev/amxamxfilec...-in-fputscell/
and:
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);
}
}
}