Beiträge von SKz

    Das sind die Autos die man kaufen kann.
    Hier der Stock



    enum AKinfo
    {
    modelid,
    Name[54],
    preis,
    Float:kaufx,
    Float:kaufy,
    Float:kaufz,
    Float:kaufrot,
    Float:spawnx,
    Float:spawny,
    Float:spawnz,
    Float:spawnrot
    }



    Also hat glaubig nichts zu sagen.

    Guten Tag
    Ich bin grade dabei ein Autohaus zu scripten. Doch ich habe ein Problem es funktioniert alles. Doch wenn man reconnect oder der Server neustartet Spawnt das Auto nicht. Der Scriptfile ordner Car existiert und das auto wird auch gespeichert doch wenn man die .txt öffnet steht bei Car_X: 00000 und das für Y,Z,A. Der Stock ist erstellt.


    Stock



    enum Ainfo
    {
    Float:Park_x,//x
    Float:Park_y,//y //hier steht dann nach einen reconnect 000000
    Float:Park_z,//z
    Float:Park_rot,//a
    Farbe1,
    Farbe2,
    Paintjob,
    Spoiler,
    Hood,
    Roof,
    Sideskirt,
    Lamps,
    Nitro,
    Exhaust,
    Wheels,
    Stereo,
    Hydraulics,
    FrontBumper,
    RearBumper,
    VentRight,
    VentLeft,
    modelid,
    preis
    }


    //Autokauf Dialog


    stock KaufAuto(playerid,autoid)
    {
    for(new i = 0; i < sizeof(BuyCars);i++)
    {
    if(GetPlayerVehicleID(playerid) == KaufAutos)
    {
    new Car[100];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",SpielerName(playerid),autoid);
    dini_Create(Car);
    dini_Set(Car,"Name",BuyCars[Name]);
    dini_IntSet(Car,"modelid",BuyCars[modelid]);
    dini_FloatSet(Car,"Car_X",BuyCars[kaufx]);
    dini_FloatSet(Car,"Car_Y",BuyCars[kaufy]);
    dini_FloatSet(Car,"Car_Z",BuyCars[kaufz]);
    dini_FloatSet(Car,"Car_ROT",BuyCars[kaufrot]);
    dini_IntSet(Car,"Farbe1",-1);
    dini_IntSet(Car,"Farbe2",-1);
    dini_IntSet(Car,"Paintjob",-1);
    dini_IntSet(Car,"Preis",BuyCars[preis]);
    auto[playerid][autoid] = CreateVehicle(BuyCars[modelid],BuyCars[kaufx],BuyCars[kaufy],BuyCars[kaufz],BuyCars[kaufrot],-1,-1,-1);
    dini_IntSet(Car,"Spoiler",GetVehicleComponentInSlot(auto[playerid][autoid],0));
    dini_IntSet(Car,"Hood",GetVehicleComponentInSlot(auto[playerid][autoid],1));
    dini_IntSet(Car,"Roof",GetVehicleComponentInSlot(auto[playerid][autoid],2));
    dini_IntSet(Car,"Sideskirt",GetVehicleComponentInSlot(auto[playerid][autoid],3));
    dini_IntSet(Car,"Lamps",GetVehicleComponentInSlot(auto[playerid][autoid],4));
    dini_IntSet(Car,"Nitro",GetVehicleComponentInSlot(auto[playerid][autoid],5));
    dini_IntSet(Car,"Exhaust",GetVehicleComponentInSlot(auto[playerid][autoid],6));
    dini_IntSet(Car,"Wheels",GetVehicleComponentInSlot(auto[playerid][autoid],7));
    dini_IntSet(Car,"Stereo",GetVehicleComponentInSlot(auto[playerid][autoid],8));
    dini_IntSet(Car,"Hydraulics",GetVehicleComponentInSlot(auto[playerid][autoid],9));
    dini_IntSet(Car,"FrontBumper",GetVehicleComponentInSlot(auto[playerid][autoid],10));
    dini_IntSet(Car,"RearBumper",GetVehicleComponentInSlot(auto[playerid][autoid],11));
    dini_IntSet(Car,"VentRight",GetVehicleComponentInSlot(auto[playerid][autoid],12));
    dini_IntSet(Car,"VentLeft",GetVehicleComponentInSlot(auto[playerid][autoid],13));
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    GivePlayerMoney(playerid,-BuyCars[preis]);
    Autos[playerid][autoid][preis] = dini_Int(Car,"Preis");
    Autos[playerid][autoid][modelid] = dini_Int(Car,"modelid");
    Autos[playerid][autoid][Farbe1] = dini_Int(Car,"Farbe1");
    Autos[playerid][autoid][Farbe2] = dini_Int(Car,"Farbe2");
    Autos[playerid][autoid][Paintjob] = dini_Int(Car,"Paintjob");
    Autos[playerid][autoid][Park_x] = dini_Int(Car,"posx");
    Autos[playerid][autoid][Park_y] = dini_Int(Car,"posy");
    Autos[playerid][autoid][Park_z] = dini_Int(Car,"posz");
    Autos[playerid][autoid][Park_rot] = dini_Int(Car,"posa");
    Autos[playerid][autoid][Spoiler] = dini_Int(Car,"Spoiler");
    Autos[playerid][autoid][Wheels] = dini_Int(Car,"Wheels");
    Autos[playerid][autoid][Nitro] = dini_Int(Car,"Nitro");
    Autos[playerid][autoid][Roof] = dini_Int(Car,"Roof");
    Autos[playerid][autoid][Hood] = dini_Int(Car,"Hood");
    Autos[playerid][autoid][Sideskirt] = dini_Int(Car,"Sideskirt");
    Autos[playerid][autoid][Lamps] = dini_Int(Car,"Lamps");
    Autos[playerid][autoid][Exhaust] = dini_Int(Car,"Exhaust");
    Autos[playerid][autoid][Stereo] = dini_Int(Car,"Stereo");
    Autos[playerid][autoid][Hydraulics] = dini_Int(Car,"Hydraulics");
    Autos[playerid][autoid][VentRight] = dini_Int(Car,"VentRight");
    Autos[playerid][autoid][VentLeft] = dini_Int(Car,"VentLeft");
    Autos[playerid][autoid][FrontBumper] = dini_Int(Car,"FrontBumper");
    Autos[playerid][autoid][RearBumper] = dini_Int(Car,"RearBumper");
    carlock[auto[playerid][autoid]] = true;
    }
    }
    }[i][i][i][i][i][i][i][i][i][i]


    OnPlayerConnect



    [/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]for(new i = 0;i < MAX_PLAYER_CARS;i++)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new Car[128];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",SpielerName(playerid),i);
    if(!dini_Exists(Car)) continue;
    {
    Autos[playerid][Park_x]= dini_Float(Car,"Car_X");
    Autos[playerid][Park_y]= dini_Float(Car,"Car_y");
    Autos[playerid][Park_z]= dini_Float(Car,"Car_Z");
    Autos[playerid][Park_rot]= dini_Float(Car,"Car_ROT");
    Autos[playerid][Farbe1] = dini_Int(Car,"Farbe1");
    Autos[playerid][Farbe2] = dini_Int(Car,"Farbe2");
    Autos[playerid][Paintjob] = dini_Int(Car,"Paintjob");
    Autos[playerid][modelid] = dini_Int(Car,"modelid");
    Autos[playerid][Spoiler] = dini_Int(Car,"Spoiler");
    Autos[playerid][Wheels] = dini_Int(Car,"Wheels");
    Autos[playerid][Nitro] = dini_Int(Car,"Nitro");
    Autos[playerid][Roof] = dini_Int(Car,"Roof");
    Autos[playerid][Hood] = dini_Int(Car,"Hood");
    Autos[playerid][Sideskirt] = dini_Int(Car,"Sideskirt");
    Autos[playerid][Lamps] = dini_Int(Car,"Lamps");
    Autos[playerid][Exhaust] = dini_Int(Car,"Exhaust");
    Autos[playerid][Stereo] = dini_Int(Car,"Stereo");
    Autos[playerid][Hydraulics] = dini_Int(Car,"Hydraulics");
    Autos[playerid][VentRight] = dini_Int(Car,"VentRight");
    Autos[playerid][VentLeft] = dini_Int(Car,"VentLeft");
    Autos[playerid][FrontBumper] = dini_Int(Car,"FrontBumper");
    Autos[playerid][RearBumper] = dini_Int(Car,"RearBumper");
    Autos[playerid][modelid] = dini_Int(Car,"modelid");
    Autos[playerid][preis] = dini_Int(Car,"Preis");
    auto[playerid] = CreateVehicle(Autos[playerid][modelid],Autos[playerid][Park_x],Autos[playerid][Park_y],Autos[playerid][Park_z],Autos[playerid][Park_rot],-1,-1,-1);
    if(Autos[playerid][Paintjob] >= 0)
    {
    ChangeVehiclePaintjob(auto[playerid],Autos[playerid][Paintjob]);
    }
    if(Autos[playerid][Farbe1] >= 0 || Autos[playerid][Farbe2] >= 0)
    {
    ChangeVehicleColor(auto[playerid],Autos[playerid][Farbe1],Autos[playerid][Farbe2]);
    }
    if(Autos[playerid][Spoiler] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Spoiler]); }
    if(Autos[playerid][Hood] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Hood]); }
    if(Autos[playerid][Roof] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Roof]); }
    if(Autos[playerid][Sideskirt] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Sideskirt]); }
    if(Autos[playerid][Lamps] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Lamps]); }
    if(Autos[playerid][Nitro] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Nitro]); }
    if(Autos[playerid][Exhaust] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Exhaust]); }
    if(Autos[playerid][Wheels] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Wheels]); }
    if(Autos[playerid][Stereo] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Stereo]); }
    if(Autos[playerid][Hydraulics] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][Hydraulics]); }
    if(Autos[playerid][FrontBumper] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][FrontBumper]); }
    if(Autos[playerid][RearBumper] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][RearBumper]); }
    if(Autos[playerid][VentRight] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][VentRight]); }
    if(Autos[playerid][VentLeft] >= 1000) { AddVehicleComponent(auto[playerid],Autos[playerid][VentLeft]); }
    GetVehicleParamsEx(auto[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(auto[playerid],engine,lights,alarm,true,bonnet,boot,objective);
    carlock[auto[playerid]] = true;
    }
    }[i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i]


    Wenn ich es abparke spawnt. Also bei /park funktioniert es. Aber es ist ja leicht doof wenn man es vergisst und nich abparkt.


    MFG
    TROniix



    Wenn was fehlt schreibt es einfach. Komme echt nicht mehr weiter[/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]

    Der code sieht nun so aus



    //autohaus
    if(dialogid == Autokauf)
    {
    for(new i = 0; i < sizeof BuyCars;i++)
    {
    if(response == 0)
    {
    TogglePlayerControllable(playerid,1);
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    if(response == 1)
    {
    if(GetPlayerVehicleID(playerid) == KaufAutos)
    {
    if(GetPlayerMoney(playerid) >= BuyCars[preis])
    {
    new Car[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name, sizeof(name));
    format(Car,sizeof(Car),"/Car/%s's Auto 1.txt",name);
    if(dini_Exists(Car))
    {
    new Car1[128];
    format(Car1,sizeof(Car1),"/Car/%s's Auto 2.txt",name);
    if(dini_Exists(Car1))
    {
    SendClientMessage(playerid,FARBE_AUTOHAUS0,"*Du hast bereits 2 Autos! Verkaufe erst eines mit /carsell.");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    }
    else KaufAuto(playerid,1);
    }
    else KaufAuto(playerid,0);
    }
    else
    {
    SendClientMessage(playerid,FARBE_AUTOHAUS0,"*Du hast nicht genug Geld um dir das Auto zukaufen!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    }
    }
    }
    }
    }


    Komme echt nicht mehr weiter. Hat sonst einer eine Idee.

    Guten Tag
    Ich habe ebend ein Autohaus ins Script gescriptet und ein wenig editiert. Doch nun kommt der Fehler das man unendlich Autos kaufen kann und im Filterscript nur ´s auto steht. Wo ist hier der Fehler. Es sind keine Errors drinne. Also in den Scriptfiles steht nur ´s Auto und dann kann ich unendliche kaufen.



    //autohaus
    if(dialogid == Autokauf)
    {
    for(new i = 0; i < sizeof BuyCars;i++)
    {
    if(response == 0)
    {
    TogglePlayerControllable(playerid,1);
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    if(response == 1)
    {
    if(GetPlayerVehicleID(playerid) == KaufAutos)
    {
    if(GetPlayerMoney(playerid) >= BuyCars[preis])
    {
    new Car[128];
    new name[MAX_PLAYER_NAME];
    format(Car,sizeof(Car),"/Car/%s's Auto 1.txt",GetPlayerName(playerid,name, sizeof(name)));
    if(dini_Exists(Car))
    {
    new Car1[128];
    format(Car1,sizeof(Car1),"/Car/%s's Auto 1.txt",GetPlayerName(playerid,name, sizeof(name)));
    if(dini_Exists(Car1))
    {
    SendClientMessage(playerid,FARBE_AUTOHAUS0,"*Du hast bereits 2 Autos! Verkaufe erst eines mit /carsell.");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    }
    else KaufAuto(playerid,1);
    }
    else KaufAuto(playerid,0);
    }
    else
    {
    SendClientMessage(playerid,FARBE_AUTOHAUS0,"*Du hast nicht genug Geld um dir das Auto zukaufen!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    }
    }
    }
    }
    }



    P.s Ich freue mich überjede Hilfe.
    MFG
    TRONIIX

    Guten Tag
    Warnings sind zwar nicht schlimm aber ich habe 37 warnings im Skript weil ich ein Autohaus eingebaut habe. Ich finde sie nicht so toll und ich denke das der Server wegen den Warnings abstuerzt wenn man ein auto kaufen moechten.


    Diese Warnings bekomme ich nicht weg.


    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(39280) : warning 219: local variable "preis" shadows a variable at a preceding level




    Die Zeile


    new menge;
    menge = strval(aktion);
    new preis = menge * 50;// die zeile




    P.s Ich freue mich ueber jede hilfe. Bekomme die nicht weg.


    MFG
    Tronix

    Aber dies ist ja mit Vehicleid und nicht mit player id oder???



    DIe zeilen mit z und i



    if(vehicleid == auto[z])// z und i
    {
    new Car[128];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",GetPlayerName(z),i);//Hier

    Moin Leute komme echt nicht weiter. Ich weiß das Warnings nicht so schlimm sind, finde sie aber nicht schön und bekomme den nicht raus.


    Die Warnings


    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(16640) : warning 202: number of arguments does not match definition
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(16640) : warning 202: number of arguments does not match definition


    Die Zeile



    new Car[128];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",GetPlayerName(z),i);// die Zeile

    Ok werde ich mal machen.


    Hätte vllt einer Tv oder Ts3 der mir erklären kann wie die Errors entstehen konnten und immer wenn ich was verändere kommt ein neuer Error könnten sich jemand vllt das skript mal angucken?

    Diese hier kommen wenn ich das Autohaus einfüge.



    C:\Users\Darius\Desktop\Sampserver\pawno\include\M_Bot.inc(541) : warning 219: local variable "playername" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "engine" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "lights" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "doors" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(3680) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4054) : warning 219: local variable "modelid" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4055) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4055) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4055) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4055) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4055) : warning 205: redundant code: constant expression is zero
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4054) : warning 204: symbol is assigned a value that is never used: "modelid"
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4054 -- 4063) : warning 219: local variable "modelid" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4064) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4064) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4064) : warning 205: redundant code: constant expression is zero
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4063) : warning 204: symbol is assigned a value that is never used: "modelid"
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4063 -- 4072) : warning 219: local variable "modelid" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4073) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4073) : warning 213: tag mismatch
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4073) : warning 205: redundant code: constant expression is zero
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(4072) : warning 204: symbol is assigned a value that is never used: "modelid"
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "engine" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "lights" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "doors" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8379) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(8823) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "engine" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "lights" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "doors" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(10802) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(16955) : warning 219: local variable "playername" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(18602) : warning 219: local variable "playername" shadows a variable at a preceding level
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(19183) : error 012: invalid function call, not a valid address
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(19183) : warning 215: expression has no effect
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(19183) : error 001: expected token: ";", but found ")"
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(19183) : error 029: invalid expression, assumed zero
    C:\Users\Darius\Desktop\samp 0.3x Server\gamemodes\Greenlightfix.pwn(19183) : fatal error 107: too many error messages on one line


    4 Errors und ziemlich viele Warnings

    Guten Tag Breadfish


    Ich benutze das Loh2 was sehr stark editiert ist. Nun wollte ich ein neues Autohaus einfügen habe dtc gelöscht alles. Aber es kommen immer noch errors. Wie kriegt man die da raus. Habe schon gegooglet aber es stand nirgends hilfe. Könnte mir wer verraten wie diese Errors zustande kommen? Bzw. wie ich ein neues einfüge??


    MFG
    Troniix

    Guten TAg ich hab ein kleines Problem und brauche dringends Hilfe.


    hier sind die Zeilen.



    stock KaufAuto(playerid,autoid)
    {
    for(new i = 0; i < sizeof(BuyCars);i++)
    {
    if(GetPlayerVehicleID(playerid) == kaufauto)
    {
    new Car[100];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",playername(playerid),autoid);
    dini_Create(Car);
    dini_Set(Car,"Name",BuyCars[Name]);
    dini_IntSet(Car,"modelid",BuyCars[modelid]);
    dini_FloatSet(Car,"Car_X",BuyCars[kaufx]);//Hier
    dini_FloatSet(Car,"Car_Y",BuyCars[kaufy]);//hier
    dini_FloatSet(Car,"Car_Z",BuyCars[kaufz]);//hier
    dini_FloatSet(Car,"Car_ROT",BuyCars[kauf_rot]);//Hier
    dini_IntSet(Car,"Farbe1",-1);
    dini_IntSet(Car,"Farbe2",-1);
    dini_IntSet(Car,"Paintjob",-1);
    dini_IntSet(Car,"Preis",BuyCars[Preis]);
    auto[playerid][autoid] = CreateVehicle(BuyCars[modelid],BuyCars[kaufx],BuyCars[kaufy],BuyCars[kaufz],BuyCars[kauf_rot],-1,-1,-1);//hier
    dini_IntSet(Car,"Spoiler",GetVehicleComponentInSlot(auto[playerid][autoid],0));
    dini_IntSet(Car,"Hood",GetVehicleComponentInSlot(auto[playerid][autoid],1));
    dini_IntSet(Car,"Roof",GetVehicleComponentInSlot(auto[playerid][autoid],2));
    dini_IntSet(Car,"Sideskirt",GetVehicleComponentInSlot(auto[playerid][autoid],3));
    dini_IntSet(Car,"Lamps",GetVehicleComponentInSlot(auto[playerid][autoid],4));
    dini_IntSet(Car,"Nitro",GetVehicleComponentInSlot(auto[playerid][autoid],5));
    dini_IntSet(Car,"Exhaust",GetVehicleComponentInSlot(auto[playerid][autoid],6));
    dini_IntSet(Car,"Wheels",GetVehicleComponentInSlot(auto[playerid][autoid],7));
    dini_IntSet(Car,"Stereo",GetVehicleComponentInSlot(auto[playerid][autoid],8));
    dini_IntSet(Car,"Hydraulics",GetVehicleComponentInSlot(auto[playerid][autoid],9));
    dini_IntSet(Car,"FrontBumper",GetVehicleComponentInSlot(auto[playerid][autoid],10));
    dini_IntSet(Car,"RearBumper",GetVehicleComponentInSlot(auto[playerid][autoid],11));
    dini_IntSet(Car,"VentRight",GetVehicleComponentInSlot(auto[playerid][autoid],12));
    dini_IntSet(Car,"VentLeft",GetVehicleComponentInSlot(auto[playerid][autoid],13));
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    GivePlayerMoney(playerid,-BuyCars[Preis]);
    Autos[playerid][autoid][Preis] = dini_Int(Car,"Preis");
    Autos[playerid][autoid][modelid] = dini_Int(Car,"modelid");
    Autos[playerid][autoid][Farbe1] = dini_Int(Car,"Farbe1");
    Autos[playerid][autoid][Farbe2] = dini_Int(Car,"Farbe2");
    Autos[playerid][autoid][Paintjob] = dini_Int(Car,"Paintjob");
    Autos[playerid][autoid][Park_x] = dini_Int(Car,"posx");
    Autos[playerid][autoid][Park_y] = dini_Int(Car,"posy");
    Autos[playerid][autoid][Park_z] = dini_Int(Car,"posz");
    Autos[playerid][autoid][Park_rot] = dini_Int(Car,"posa");
    Autos[playerid][autoid][Spoiler] = dini_Int(Car,"Spoiler");
    Autos[playerid][autoid][Wheels] = dini_Int(Car,"Wheels");
    Autos[playerid][autoid][Nitro] = dini_Int(Car,"Nitro");
    Autos[playerid][autoid][Roof] = dini_Int(Car,"Roof");
    Autos[playerid][autoid][Hood] = dini_Int(Car,"Hood");
    Autos[playerid][autoid][Sideskirt] = dini_Int(Car,"Sideskirt");
    Autos[playerid][autoid][Lamps] = dini_Int(Car,"Lamps");
    Autos[playerid][autoid][Exhaust] = dini_Int(Car,"Exhaust");
    Autos[playerid][autoid][Stereo] = dini_Int(Car,"Stereo");
    Autos[playerid][autoid][Hydraulics] = dini_Int(Car,"Hydraulics");
    Autos[playerid][autoid][VentRight] = dini_Int(Car,"VentRight");
    Autos[playerid][autoid][VentLeft] = dini_Int(Car,"VentLeft");
    Autos[playerid][autoid][FrontBumper] = dini_Int(Car,"FrontBumper");
    Autos[playerid][autoid][RearBumper] = dini_Int(Car,"RearBumper");
    GetVehicleParamsEx(auto[playerid][autoid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(auto[playerid][autoid],engine,lights,alarm,true,bonnet,boot,objective);
    carlock[auto[playerid][autoid]] = true;
    }
    }
    }[i][i][i][i][i][i][i][i][i][i]



    Und die Errors die ich



    [/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]C:\Users\Darius\Desktop\samp 0.3x Server\filterscripts\RRCar.pwn(614) : error 017: undefined symbol "kaufx"
    C:\Users\Darius\Desktop\samp 0.3x Server\filterscripts\RRCar.pwn(615) : error 017: undefined symbol "kaufy"
    C:\Users\Darius\Desktop\samp 0.3x Server\filterscripts\RRCar.pwn(616) : error 017: undefined symbol "kaufz"
    C:\Users\Darius\Desktop\samp 0.3x Server\filterscripts\RRCar.pwn(617) : error 017: undefined symbol "kauf_rot"
    C:\Users\Darius\Desktop\samp 0.3x Server\filterscripts\RRCar.pwn(622) : error 017: undefined symbol "kaufx"[i][i][i][i][i][i][i][i][i][i]
    [/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]


    Ich komme echt nicht weiter die Erros habe ich mit //hier markiert. Ich freue mich über positive und sinnvolle Antworten. Falls ihr noch Pawn codes braucht schreib einfach hier drunter welche.


    MFG
    TRONIIX

    Guten Tag ich habe ein problem mit dem Autohaus system. Wenn ich ein Auto kaufe spawnt es auf dem stehenden auto dabei soll es wo an ders spawnen.


    der Stock



    stock KaufAuto(playerid,autoid)
    {
    for(new i = 0; i < sizeof(BuyCars);i++)
    {
    if(GetPlayerVehicleID(playerid) == kaufauto)
    {
    new Car[100];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",playername(playerid),autoid);
    dini_Create(Car);
    dini_Set(Car,"Name",BuyCars[Name]);
    dini_IntSet(Car,"modelid",BuyCars[modelid]);
    dini_FloatSet(Car,"Car_X",BuyCars[posx]);//hier dachte ist wäre der fehler aber ich weiß es nicht genau Habe alles schon probiert
    dini_FloatSet(Car,"Car_Y",BuyCars[posy]);
    dini_FloatSet(Car,"Car_Z",BuyCars[posz]);
    dini_FloatSet(Car,"Car_ROT",BuyCars[posa]);
    dini_IntSet(Car,"Farbe1",-1);
    dini_IntSet(Car,"Farbe2",-1);
    dini_IntSet(Car,"Paintjob",-1);
    dini_IntSet(Car,"Preis",BuyCars[Preis]);
    auto[playerid][autoid] = CreateVehicle(BuyCars[modelid],BuyCars[posx],BuyCars[posy],BuyCars[posz],BuyCars[posa],-1,-1,-1);
    dini_IntSet(Car,"Spoiler",GetVehicleComponentInSlot(auto[playerid][autoid],0));
    dini_IntSet(Car,"Hood",GetVehicleComponentInSlot(auto[playerid][autoid],1));
    dini_IntSet(Car,"Roof",GetVehicleComponentInSlot(auto[playerid][autoid],2));
    dini_IntSet(Car,"Sideskirt",GetVehicleComponentInSlot(auto[playerid][autoid],3));
    dini_IntSet(Car,"Lamps",GetVehicleComponentInSlot(auto[playerid][autoid],4));
    dini_IntSet(Car,"Nitro",GetVehicleComponentInSlot(auto[playerid][autoid],5));
    dini_IntSet(Car,"Exhaust",GetVehicleComponentInSlot(auto[playerid][autoid],6));
    dini_IntSet(Car,"Wheels",GetVehicleComponentInSlot(auto[playerid][autoid],7));
    dini_IntSet(Car,"Stereo",GetVehicleComponentInSlot(auto[playerid][autoid],8));
    dini_IntSet(Car,"Hydraulics",GetVehicleComponentInSlot(auto[playerid][autoid],9));
    dini_IntSet(Car,"FrontBumper",GetVehicleComponentInSlot(auto[playerid][autoid],10));
    dini_IntSet(Car,"RearBumper",GetVehicleComponentInSlot(auto[playerid][autoid],11));
    dini_IntSet(Car,"VentRight",GetVehicleComponentInSlot(auto[playerid][autoid],12));
    dini_IntSet(Car,"VentLeft",GetVehicleComponentInSlot(auto[playerid][autoid],13));
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    GivePlayerMoney(playerid,-BuyCars[Preis]);
    Autos[playerid][autoid][Preis] = dini_Int(Car,"Preis");
    Autos[playerid][autoid][modelid] = dini_Int(Car,"modelid");
    Autos[playerid][autoid][Farbe1] = dini_Int(Car,"Farbe1");
    Autos[playerid][autoid][Farbe2] = dini_Int(Car,"Farbe2");
    Autos[playerid][autoid][Paintjob] = dini_Int(Car,"Paintjob");
    Autos[playerid][autoid][Park_x] = dini_Int(Car,"posx");
    Autos[playerid][autoid][Park_y] = dini_Int(Car,"posy");
    Autos[playerid][autoid][Park_z] = dini_Int(Car,"posz");
    Autos[playerid][autoid][Park_rot] = dini_Int(Car,"posa");
    Autos[playerid][autoid][Spoiler] = dini_Int(Car,"Spoiler");
    Autos[playerid][autoid][Wheels] = dini_Int(Car,"Wheels");
    Autos[playerid][autoid][Nitro] = dini_Int(Car,"Nitro");
    Autos[playerid][autoid][Roof] = dini_Int(Car,"Roof");
    Autos[playerid][autoid][Hood] = dini_Int(Car,"Hood");
    Autos[playerid][autoid][Sideskirt] = dini_Int(Car,"Sideskirt");
    Autos[playerid][autoid][Lamps] = dini_Int(Car,"Lamps");
    Autos[playerid][autoid][Exhaust] = dini_Int(Car,"Exhaust");
    Autos[playerid][autoid][Stereo] = dini_Int(Car,"Stereo");
    Autos[playerid][autoid][Hydraulics] = dini_Int(Car,"Hydraulics");
    Autos[playerid][autoid][VentRight] = dini_Int(Car,"VentRight");
    Autos[playerid][autoid][VentLeft] = dini_Int(Car,"VentLeft");
    Autos[playerid][autoid][FrontBumper] = dini_Int(Car,"FrontBumper");
    Autos[playerid][autoid][RearBumper] = dini_Int(Car,"RearBumper");
    GetVehicleParamsEx(auto[playerid][autoid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(auto[playerid][autoid],engine,lights,alarm,true,bonnet,boot,objective);
    carlock[auto[playerid][autoid]] = true;
    }
    }
    }


    Der spawn + Enum



    enum AHInfo //Autohausinfo
    {
    Name[25],
    Float:posx,
    Float:posy,
    Float:posz,
    Float:spawnx,
    Float:spawny,
    Float:spawnz,
    Float:spawna,
    Kasse,
    Besitzer[MAX_PLAYER_NAME]
    }


    enum AKInfo // Autokaufinfo
    {
    modelid,
    Name[35],
    Autohausname[25], // sollte den selben string haben wie oben.
    Preis,
    Float:posx,
    Float:posy,
    Float:posz,
    Float:posa // die angle ist auch sehr wichtig bei einem Fahrzeug!
    }


    enum Ainfo //Autoinfo
    {
    Float:Park_x,
    Float:Park_y,
    Float:Park_z,
    Float:Park_rot,
    Name[35],
    modelid,
    Preis,
    Float:HP,
    Nummernschild[20],
    Float:posx,
    Float:posy,
    Float:posz,
    Float:posa,
    Farbe1,
    Farbe2,
    Paintjob,
    Spoiler,
    Hood,
    Roof,
    Sideskirt,
    Lamps,
    Nitro,
    Exhaust,
    Wheels,
    Stereo,
    Hydraulics,
    FrontBumper,
    RearBumper,
    VentRight,
    VentLeft,
    }




    new Autohaus[1][AHInfo] = {//die [1] steht für die Anzahl der Autohäuser. [AHinfo] steht für die enum.
    {"Billig Autohaus", 739.8586,-1343.2369,13.5212, 739.8586,-1343.2369,13.5212,260.6099, 0, "Staat"}
    };


    new BuyCars[23][AKInfo] = {
    {602, "Alpha", "Billig Autohaus", 100000, 783.7607,-1332.9691,13.4168,90.9032},
    {489, "Rancher", "Billig Autohaus", 100000, 765.1227,-1333.4631,13.6868,141.0077},
    {576, "Tornado", "Billig Autohaus", 100000, 770.0089,-1333.9395,13.1439,141.1648},
    {405, "Sentinel", "Billig Autohaus", 100000, 783.9448,-1332.3824,13.4092,88.7133},
    {421, "Washington", "Billig Autohaus", 100000, 783.4583,-1336.2471,13.4221,90.4564},
    {439, "Stallion", "Billig Autohaus", 100000, 784.0706,-1339.7084,13.4358,91.9085},
    {466, "Glendale", "Billig Autohaus", 100000, 783.6873,-1343.2762,13.2868,89.1258},
    {445, "Admiral", "Billig Autohaus", 100000, 783.7002,-1347.3093,13.4149,89.9295},
    {458, "Solair", "Billig Autohaus", 100000, 783.8115,-1351.3041,13.4243,89.2738},
    {467, "Oceanic", "Billig Autohaus", 100000, 783.7657,-1355.7397,13.2798,89.8498},
    {496, "Blista Compact", "Billig Autohaus", 100000, 784.3522,-1359.7819,13.2588,92.8627},
    {475, "Sabre", "Billig Autohaus", 100000, 784.0540,-1363.6578,13.3433,91.3383},
    {543, "Sadler", "Billig Autohaus", 100000, 784.0724,-1367.6761,13.3565,89.8814},
    {533, "Feltzer", "Billig Autohaus", 100000, 784.1492,-1371.3898,13.2631,90.9766},
    {540, "Vincent", "Billig Autohaus", 100000, 783.7069,-1374.9211,13.4604,88.7509},
    {565, "Flash", "Billig Autohaus", 100000, 783.8160,-1378.6798,13.2697,90.3132},
    {535, "Slamvan", "Billig Autohaus", 100000, 784.0175,-1382.5913,13.4522,86.6044},
    {474, "Hermes", "Billig Autohaus", 100000, 760.8021,-1379.1677,13.3962,271.1054},
    {545, "Hustler", "Billig Autohaus", 100000, 761.3039,-1376.0748,13.4067,270.2395},
    {550, "Sunrise", "Billig Autohaus", 100000, 761.0652,-1372.7755,13.4241,268.4661},
    {507, "Elegant", "Billig Autohaus", 100000, 760.6935,-1368.8972,13.3418,269.9946},
    {534, "Remington", "Billig Autohaus", 100000, 760.6251,-1365.3376,13.2246,268.2537},
    {536, "Blade", "Billig Autohaus", 100000, 760.9346,-1361.8179,13.2460,270.8210}
    };


    Ich weiß echt nicht mehr weiter könnte mir einer helfen. Ich freue mich über Positive antworten. Hat vllt einer TV der sich das mal angucken möchte???


    MFG
    TRONIIX