mam menši problem s ktorym som sa ešte nestretol tak preto tu píšem mam
public OnVehicleMod(playerid,vehicleid,componentid)
{
new s3[100],cc,plus = 1;
format(s3,100,"vehicles/vehicle.txt");//toto je nepodstatne to len kontroluje kolko vehicle existuje už..
dini_Create(s3);
cc = dini_Int(s3,"cislo");
cc ++;
while (plus < cc)
{
if(vehicleid == Car[plus])
{
new Varz = InitComponents(componentid);
new s2[100];
format(s2,100,"vehicles/vehicle%d.txt",plus);//cod ktory už otvara ten subor ktory mi ho skopči a mam ho 2x ale subory su rozdielne
switch (Varz)
{
case 0: { dini_IntSet(s2,"Tuning1",componentid); }
case 1: { dini_IntSet(s2,"Tuning2",componentid); }
case 2: { dini_IntSet(s2,"Tuning3",componentid); }
case 3: { dini_IntSet(s2,"Tuning4",componentid); }
case 4: { dini_IntSet(s2,"Tuning5",componentid); }
case 5: { dini_IntSet(s2,"Tuning6",componentid); }
case 6: { dini_IntSet(s2,"Tuning7",componentid); }
case 7: { dini_IntSet(s2,"Tuning8",componentid); }
case 8: { dini_IntSet(s2,"Tuning9",componentid); }
case 9: { dini_IntSet(s2,"Tuning10",componentid); }
case 10: { dini_IntSet(s2,"Tuning11",componentid); }
case 11: { dini_IntSet(s2,"Tuning12",componentid); }
case 12: { dini_IntSet(s2,"Tuning13",componentid); }
case 13: { dini_IntSet(s2,"Tuning14",componentid); }
case 14: { dini_IntSet(s2,"Tuning15",componentid); }
case 15: { dini_IntSet(s2,"Tuning16",componentid); }
case 16: { dini_IntSet(s2,"Tuning17",componentid); }
}
}
}
return 1;
}
a ked napriklad pridam nitro tak všetko mi zamrzne a do suboru mi všetko pekne zhapiše ale vitrovy to aj new subor ktory nwm ako sa vytvory a kôli tomu to lagne subor môžte vidieť na obrazku červenym označeny.. Prosim o Pomoc.
Obrazok:
http://uloz.to/xHAcb4QT/vehicletxt-png