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
#2

Another RP editor... Anyways done include them as .inc's, have them read from a .txt file in scriptfiles.
Reply
#3

huh what u mean lol
Reply
#4

Have you added extra cars, its mainly because of that
Reply
#5

Yes i added cars, but why does that make a difference?
i did everything the same....
model, then x,y,z,a etc.....
Reply
#6

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.
Reply
#7

B_U_M_P.
Reply
#8

Uh, why not just take them and put down

AddStaticVehicle(model,x,y,z,whatthisis,colour1,co lour2);
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)