Wierd error -
Mike_Peterson - 08.09.2010
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
Код:
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;
}
this is the part where it writes the cars.cfg
can someone help me out
Re: Wierd error -
willsuckformoney - 08.09.2010
Another RP editor... Anyways done include them as .inc's, have them read from a .txt file in scriptfiles.
Re: Wierd error -
Mike_Peterson - 08.09.2010
huh what u mean lol
Re: Wierd error -
Scarface~ - 08.09.2010
Have you added extra cars, its mainly because of that
Re: Wierd error -
Mike_Peterson - 08.09.2010
Yes i added cars, but why does that make a difference?
i did everything the same....
model, then x,y,z,a etc.....
Re: Wierd error -
Mike_Peterson - 11.09.2010
bump.... still want to know how to fix it
nothing went wrong till i added those vehicles.... but why does adding vehicles causes this major bug?
i exactly did it right, every letter,spaces,line whatever.
Re: Wierd error -
Mike_Peterson - 12.09.2010
B_U_M_P.
Re: Wierd error -
willsuckformoney - 12.09.2010
Uh, why not just take them and put down
AddStaticVehicle(model,x,y,z,whatthisis,colour1,co lour2);
Re: Wierd error -
Mike_Peterson - 12.09.2010
because you cant buy them then... and if i want to make them buyable it will be a hell lot of work and im n ot the best scripter
Re: Wierd error -
Vince - 13.09.2010
Quote:
Originally Posted by Mike_Peterson
but why does that make a difference?
|
Because the godfather (and any edits) are very STATIC, meaning adding just one car will screw up the whole gamemode.