Wierd error
#1

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
Reply


Messages In This Thread
Wierd error - by Mike_Peterson - 08.09.2010, 18:51
Re: Wierd error - by willsuckformoney - 08.09.2010, 19:07
Re: Wierd error - by Mike_Peterson - 08.09.2010, 19:47
Re: Wierd error - by Scarface~ - 08.09.2010, 19:53
Re: Wierd error - by Mike_Peterson - 08.09.2010, 19:57
Re: Wierd error - by Mike_Peterson - 11.09.2010, 12:20
Re: Wierd error - by Mike_Peterson - 12.09.2010, 07:47
Re: Wierd error - by willsuckformoney - 12.09.2010, 07:53
Re: Wierd error - by Mike_Peterson - 12.09.2010, 13:20
Re: Wierd error - by Vince - 13.09.2010, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)