Sziasztok! Egy kis kérdés lenne nah a lényeg az lenne hogy eddig a kocsikat 200 idtol mentette le most átt irtam hogy a frakciok megtett km is mentse le és müködik is csak az a baj hogy a fraki kocsik üzemanyagát mindenét lementi ezt hogyan lehetne idre szabni hogy csak ennek menjen pl futott km 1 idtol a tobbinek meg 200as idtol mentsen?
stock SaveVehicle( vehicleid )
{
if(!dini_Exists(vehicleFile(vehicleid)) && vehicleid > 1)
{
dini_Create( vehicleFile(vehicleid) );
}
dini_IntSet( vehicleFile(vehicleid), \"MODEL\", vInfo[vehicleid][MODEL] );
dini_FloatSet( vehicleFile(vehicleid), \"X\", vInfo[vehicleid][X] );
dini_FloatSet( vehicleFile(vehicleid), \"Y\", vInfo[vehicleid][Y] );
dini_FloatSet( vehicleFile(vehicleid), \"Z\", vInfo[vehicleid][Z] );
dini_FloatSet( vehicleFile(vehicleid), \"A\", vInfo[vehicleid][A] );
dini_IntSet( vehicleFile(vehicleid), \"Aktiv\", vInfo[vehicleid][Aktiv] );
dini_Set( vehicleFile(vehicleid), \"OWNER\", vInfo[vehicleid][OWNER] );
dini_Set( vehicleFile(vehicleid), \"COOWNER\", vInfo[vehicleid][COOWNER] );
dini_IntSet( vehicleFile(vehicleid), \"COLOR\", vInfo[vehicleid][COLOR] );
dini_IntSet( vehicleFile(vehicleid), \"COLOR2\", vInfo[vehicleid][COLOR2] );
dini_IntSet( vehicleFile(vehicleid), \"SOLD\", vInfo[vehicleid][SOLD] );
dini_Set( vehicleFile(vehicleid), \"PLATE\", vInfo[vehicleid][PLATE] );
dini_IntSet( vehicleFile(vehicleid), \"PRICE\", vInfo[vehicleid][PRICE] );
dini_IntSet( vehicleFile(vehicleid), \"LOCKED\", vInfo[vehicleid][LOCKED] );
dini_IntSet(vehicleFile(vehicleid), \"ÜzemanyagTipus\", vInfo[vehicleid][UZEMANYAGTIPUS]);
dini_IntSet(vehicleFile(vehicleid), \"MilyenVanBenne\", vInfo[vehicleid][UZEMANYAGTIPUSVAN]);
dini_IntSet(vehicleFile(vehicleid), \"MaxÜzemAnyag\", vInfo[vehicleid][MAXUZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"ÜzemAnyag\", vInfo[vehicleid][UZEMANYAG]);
dini_IntSet(vehicleFile(vehicleid), \"KerékBilincs\", vInfo[vehicleid][KEREKBILINCS]);
dini_IntSet(vehicleFile(vehicleid), \"Lefoglalva\", vInfo[vehicleid][LEFOGLALVA]);
dini_FloatSet( vehicleFile(vehicleid), \"FUTOTTKM\", vInfo[vehicleid][FUTOTTKM] );
dini_IntSet(vehicleFile(vehicleid), \"DEAGLE\", vInfo[vehicleid][DESI]);
dini_IntSet(vehicleFile(vehicleid), \"COLT\", vInfo[vehicleid][COLT]);
dini_IntSet(vehicleFile(vehicleid), \"UTO\", vInfo[vehicleid][UTO]);
dini_IntSet(vehicleFile(vehicleid), \"COCAIN\", vInfo[vehicleid][COCAIN]);
dini_IntSet(vehicleFile(vehicleid), \"FU\", vInfo[vehicleid][FU]);
dini_IntSet(vehicleFile(vehicleid), \"PANELS\", vInfo[vehicleid][PANELS]);
dini_IntSet(vehicleFile(vehicleid), \"DOORS\", vInfo[vehicleid][DOORS]);
dini_IntSet(vehicleFile(vehicleid), \"LIGHTS\", vInfo[vehicleid][LIGHTS]);
dini_IntSet(vehicleFile(vehicleid), \"TIRES\", vInfo[vehicleid][TIRES]);
dini_IntSet(vehicleFile(vehicleid), \"Riaszto\", vInfo[vehicleid][Riaszto]);
dini_IntSet(vehicleFile(vehicleid), \"Vedelmi\", vInfo[vehicleid][Vedelmi]);
dini_IntSet(vehicleFile(vehicleid), \"VedelmiKod\", vInfo[vehicleid][VedelmiKod]);
dini_FloatSet(vehicleFile(vehicleid), \"ELET\", vInfo[vehicleid][ELET]);
return 1;
}