Tunning system, speichert nicht die tunning teile

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • tunnin system speichert sich nicht datei bleibt 0




    stock SFC(autoid)//Speichert auto
    {
    new SDatei[64];
    format(SDatei,50,"/fraccar/%d.txt",autoid);
    dini_IntSet(SDatei,"Model",FCInfo[autoid][carvehid]);
    dini_FloatSet(SDatei,"X",FCInfo[autoid][fcx]);
    dini_FloatSet(SDatei,"Y",FCInfo[autoid][fcy]);
    dini_FloatSet(SDatei,"Z",FCInfo[autoid][fcz]);
    dini_FloatSet(SDatei,"A",FCInfo[autoid][fca]);
    dini_IntSet(SDatei,"Farbe1",FCInfo[autoid][fcc1]);
    dini_IntSet(SDatei,"Farbe2",FCInfo[autoid][fcc2]);
    dini_IntSet(SDatei,"Fraktion",FCInfo[autoid][Frakid]);
    dini_IntSet(SDatei,"Open",FCInfo[autoid][open]);
    dini_IntSet(SDatei,"Opark",FCInfo[autoid][Opark]);
    dini_IntSet(SDatei,"Paintjob",FCInfo[autoid][Paintjob]);




    dini_IntSet(SDatei,"spoiler",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],0));
    dini_IntSet(SDatei,"Hood",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],1));
    dini_IntSet(SDatei,"Roof",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],2));
    dini_IntSet(SDatei,"Sideskirt",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],3));
    dini_IntSet(SDatei,"Lamps",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],4));
    dini_IntSet(SDatei,"Nitro",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],5));
    dini_IntSet(SDatei,"Exhaust",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],6));
    dini_IntSet(SDatei,"Wheels",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],7));
    dini_IntSet(SDatei,"Stereo",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],8));
    dini_IntSet(SDatei,"Hydraulics",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],9));
    dini_IntSet(SDatei,"FrontBumper",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],10));
    dini_IntSet(SDatei,"RearBumper",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],11));
    dini_IntSet(SDatei,"VentRight",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],12));
    dini_IntSet(SDatei,"VentLeft",GetVehicleComponentInSlot(FCInfo[autoid][carvehid],13));*/

    return 1;
    }



    stock LFC(autoid)//ladet auto
    {
    new SDatei[64];
    format(SDatei,50,"/fraccar/%d.txt",autoid);
    if(!fexist(SDatei))return 0;
    FCInfo[autoid][carvehid] = 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][Paintjob] = dini_Int(SDatei,"Paintjob");
    FCInfo[autoid][spoiler] = dini_Int(SDatei,"spoiler");
    FCInfo[autoid][Wheels] = dini_Int(SDatei,"Wheels");
    FCInfo[autoid][Nitro] = dini_Int(SDatei,"Nitro");
    FCInfo[autoid][Roof] = dini_Int(SDatei,"Roof");
    FCInfo[autoid][Hood] = dini_Int(SDatei,"Hood");
    FCInfo[autoid][Sideskirt] = dini_Int(SDatei,"Sideskirt");
    FCInfo[autoid][Lamps] = dini_Int(SDatei,"Lamps");
    FCInfo[autoid][Exhaust] = dini_Int(SDatei,"Exhaust");
    FCInfo[autoid][Stereo] = dini_Int(SDatei,"Stereo");
    FCInfo[autoid][Hydraulics] = dini_Int(SDatei,"Hydraulics");
    FCInfo[autoid][VentRight] = dini_Int(SDatei,"VentRight");
    FCInfo[autoid][VentLeft] = dini_Int(SDatei,"VentLeft");
    FCInfo[autoid][FrontBumper] = dini_Int(SDatei,"FrontBumper");
    FCInfo[autoid][RearBumper] = dini_Int(SDatei,"RearBumper");
    Frakcar[autoid] = CreateVehicle(FCInfo[autoid][carvehid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
    //ab hier errors
    if(FCInfo[autoid][Paintjob] >= 0) //zeile 49702
    {
    ChangeVehiclePaintjob(FCInfo[autoid][carvehid],FCInfo[autoid][Paintjob]);
    }
    if(FCInfo[autoid][spoiler] >= 1000){ AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][spoiler]); }
    if(FCInfo[autoid][Hood] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Hood]); }
    if(FCInfo[autoid][Roof] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Roof]); }
    if(FCInfo[autoid][Sideskirt] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Sideskirt]); }
    if(FCInfo[autoid][Lamps] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Lamps]); }
    if(FCInfo[autoid][Nitro] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Nitro]); }
    if(FCInfo[autoid][Exhaust] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Exhaust]); }
    if(FCInfo[autoid][Wheels] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Wheels]); }
    if(FCInfo[autoid][Stereo] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Stereo]); }
    if(FCInfo[autoid][Hydraulics] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][Hydraulics]); }
    if(FCInfo[autoid][FrontBumper] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][FrontBumper]); }
    if(FCInfo[autoid][RearBumper] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][RearBumper]); }
    if(FCInfo[autoid][VentRight] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][VentRight]); }
    if(FCInfo[autoid][VentLeft] >= 1000) { AddVehicleComponent(FCInfo[autoid][carvehid],FCInfo[autoid][VentLeft]); }
    return 1;
    }





    es speichert sich nicht die Fraktion tunning teile wiese ?




    bitte um hilfe


    MFG


    LordHit