Hey Leute,
ich habe da ein problem mit dem Laden von Tuningteilen
hier ist die Funktion:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[256];
new tmp[256];
format(string, sizeof(string),"Autos/vehicle_%d.sav",vehicleid);
new Tuning0,Tuning1,Tuning2,Tuning3,Tuning4,Tuning5,Tuning6,Tuning7,Tuning8,Tuning9,Tuning10,Tuning11,Tuning12,Tuning13,Tuning14,Tuning15,Tuning16,Tuning17;
tmp = dini_Get(string,"Tuning0");Tuning0 = strval(tmp);
tmp = dini_Get(string,"Tuning1");Tuning1 = strval(tmp);
tmp = dini_Get(string,"Tuning2");Tuning2 = strval(tmp);
tmp = dini_Get(string,"Tuning3");Tuning3 = strval(tmp);
tmp = dini_Get(string,"Tuning4");Tuning4 = strval(tmp);
tmp = dini_Get(string,"Tuning5");Tuning5 = strval(tmp);
tmp = dini_Get(string,"Tuning6");Tuning6 = strval(tmp);
tmp = dini_Get(string,"Tuning7");Tuning7 = strval(tmp);
tmp = dini_Get(string,"Tuning8");Tuning8 = strval(tmp);
tmp = dini_Get(string,"Tuning9");Tuning9 = strval(tmp);
tmp = dini_Get(string,"Tuning10");Tuning10 = strval(tmp);
tmp = dini_Get(string,"Tuning11");Tuning11 = strval(tmp);
tmp = dini_Get(string,"Tuning12");Tuning12 = strval(tmp);
tmp = dini_Get(string,"Tuning13");Tuning13 = strval(tmp);
tmp = dini_Get(string,"Tuning14");Tuning14 = strval(tmp);
tmp = dini_Get(string,"Tuning15");Tuning15 = strval(tmp);
tmp = dini_Get(string,"Tuning16");Tuning16 = strval(tmp);
tmp = dini_Get(string,"Tuning17");Tuning17 = strval(tmp);
AddVehicleComponent(vehicleid,Tuning0);AddVehicleComponent(vehicleid,Tuning1);AddVehicleComponent(vehicleid,Tuning2);AddVehicleComponent(vehicleid,Tuning3);
AddVehicleComponent(vehicleid,Tuning4);AddVehicleComponent(vehicleid,Tuning5);AddVehicleComponent(vehicleid,Tuning6);AddVehicleComponent(vehicleid,Tuning7);
AddVehicleComponent(vehicleid,Tuning8);AddVehicleComponent(vehicleid,Tuning9);AddVehicleComponent(vehicleid,Tuning10);AddVehicleComponent(vehicleid,Tuning11);
AddVehicleComponent(vehicleid,Tuning12);AddVehicleComponent(vehicleid,Tuning13);AddVehicleComponent(vehicleid,Tuning14);AddVehicleComponent(vehicleid,Tuning15);
AddVehicleComponent(vehicleid,Tuning16);AddVehicleComponent(vehicleid,Tuning17);
return 1;
}
immer wenn ich einsteige ist das Auto nicht getunt dabei ist das Tuning ja in der ACC datei drin zumindest "Tuning7" und "Tuning8"
model=550
eingepackt=0
art=0
x=-2678.741210
y=16.746767
z=6.575869
a=178.450332
color1=158
color2=158
verkauf=1
Preis=25000
kmstand=967
rkmstand=967
tank=100
Besitzer=Niemand
Schluessel1=Niemand
gebrauchtwagen=1
Tuning7=1143
Tuning8=1142
ich hoffe mir kann einer helfen
mfg Dedi
//€ Keiner eine Antwort???? das ist mir neu :(