08.09.2010, 18:51
Im using a modified GF edit probably NightLife and i copied and paste the saving car components from LARP everything works but now i enter a for sale Yosemite and it says Sale: Huntley at every car the name is different while in cars.cfg its all right
also in cars.cfg i got a very strange bug who may causes the rename
It seems to be glitched

this is the part where it writes the cars.cfg
can someone help me out
also in cars.cfg i got a very strange bug who may causes the rename
It seems to be glitched

Код:
idx = 184;
while (idx < sizeof(CarInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
CarInfo[idx][cModel],
CarInfo[idx][cLocationx],
CarInfo[idx][cLocationy],
CarInfo[idx][cLocationz],
CarInfo[idx][cAngle],
CarInfo[idx][cColorOne],
CarInfo[idx][cColorTwo],
CarInfo[idx][cOwner],
CarInfo[idx][cDescription],
CarInfo[idx][cValue],
CarInfo[idx][cLicense],
CarInfo[idx][cOwned],
CarInfo[idx][cLock],
CarInfo[idx][cPaintjob],
CarInfo[idx][cVirWorld],
CarInfo[idx][cSetted],
CarInfo[idx][cComponent0],
CarInfo[idx][cComponent1],
CarInfo[idx][cComponent2],
CarInfo[idx][cComponent3],
CarInfo[idx][cComponent4],
CarInfo[idx][cComponent5],
CarInfo[idx][cComponent6],
CarInfo[idx][cComponent7],
CarInfo[idx][cComponent8],
CarInfo[idx][cComponent9],
CarInfo[idx][cComponent10],
CarInfo[idx][cComponent11],
CarInfo[idx][cComponent12],
CarInfo[idx][cComponent13]);
if(idx == 184)
{
file2 = fopen("cfg/cars.cfg", io_write);
}
else
{
file2 = fopen("cfg/cars.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
can someone help me out


