Hallo!
Mein Frakcarsystem buggt n bissel rum.
Wenn ich ein server restart mache, sind die Farben ganz anders!
Hier mein Load stock:
stock LFC(autoid)
{
new SDatei[64];
format(SDatei,50,"/fraccar/%d.txt",autoid);
if(!fexist(SDatei))return 0;
FCInfo[autoid][fmodelid] = dini_Int(SDatei,"Model");
FCInfo[autoid][fcx] = dini_Float(SDatei,"X");
FCInfo[autoid][fcy] = dini_Float(SDatei,"Y");
FCInfo[autoid][fcz] = dini_Float(SDatei,"Z");
FCInfo[autoid][fca] = dini_Float(SDatei,"A");
FCInfo[autoid][Frakid] = dini_Int(SDatei,"Fraktion");
FCInfo[autoid][fcc1] = dini_Int(SDatei,"Farbe1");
FCInfo[autoid][fcc2] = dini_Int(SDatei,"Farbe2");
FCInfo[autoid][open] = dini_Int(SDatei,"Open");
FCInfo[autoid][Opark] = dini_Int(SDatei,"Opark");
FCInfo[autoid][Numplate] = dini_Int(SDatei,"Numplate");
FCInfo[autoid][Neon] = dini_Int(SDatei,"Neon");
Frakcar[autoid] = CreateVehicle(FCInfo[autoid][fmodelid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
FCInfo[autoid][CarNitro] = dini_Int(SDatei,"CarNitro");
FCInfo[autoid][CarHyd] = dini_Int(SDatei,"CarHyd");
FCInfo[autoid][CarWheel] = dini_Int(SDatei,"CarWheel");
FCInfo[autoid][CarAusp] = dini_Int(SDatei,"CarAusp");
FCInfo[autoid][CarSideL] = dini_Int(SDatei,"CarSideL");
FCInfo[autoid][CarSideR] = dini_Int(SDatei,"CarSideR");
FCInfo[autoid][CarFB] = dini_Int(SDatei,"CarFB");
FCInfo[autoid][CarRB] = dini_Int(SDatei,"CarRB");
FCInfo[autoid][CarSpoiler] = dini_Int(SDatei,"CarSpoiler");
FCInfo[autoid][CarRoof] = dini_Int(SDatei,"CarRoof");
FCInfo[autoid][CarHood] = dini_Int(SDatei,"CarHood");
FCInfo[autoid][CarVentL] = dini_Int(SDatei,"CarVentL");
FCInfo[autoid][CarVentR] = dini_Int(SDatei,"CarVentR");
FCInfo[autoid][CarLamps] = dini_Int(SDatei,"CarLamps");
FCInfo[autoid][CarPJ] = dini_Int(SDatei,"CarPJ");
IsFrakCar[autoid] = 1;
AddFCarTuning(autoid);
return 1;
}