Beiträge von SKz

    Guten Tag


    Ich arbeite grade an einem system für das Oamt womit sie die autos sperren. Ich habe den Befehl so gemacht das man den über das Kennzeichen am Auto sperrt. Doch nun ist das problem das überall das gleiche kennzeichen ist es seit den man fährt zu den punkt und gibt dort /kennzeichen ein. Nun möchte ich aber ein random autokennzeichen system haben. Also zufällige zahlen nach dem autokauf.
    Ich benutze das Dt_car System. (ältere Version)


    /kennzeichen Befehl


    if(strcmp(cmd,"/kennzeichen",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,2.5,1658.3011,-1698.5973,20.4719))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    new car = GetPlayerVehicleID(playerid);
    if(IsADtCar(car))
    {
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    if(car == PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId])
    {
    new rndzahl, stringg[32];
    rndzahl = random(8999)+1000;
    format(stringg,sizeof(stringg),"%d",rndzahl);
    if(KZExistiert(stringg))
    {
    rndzahl = rndzahl-1;
    format(stringg,sizeof(stringg),"%d",rndzahl);
    }
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPlate] = 1;
    //format(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarNumber],sizeof(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarNumber]),"%d",rndzahl);
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarNumber] = stringg;
    format(string,sizeof(string),"Dein neues Kennzeichen ist: %d",rndzahl);
    SendClientMessage(playerid,0x00FFFFFF,string);
    new Float:CarX,Float:CarY,Float:CarZ,Float:CarA;
    GetVehiclePos(car,CarX,CarY,CarZ);
    GetVehicleZAngle(car,CarA);
    DestroyVehicle(car);
    PlayerCarSpawn(playerid,Dtc_PlayerKey[playerid]);
    SetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],CarX,CarY,CarZ);
    SetVehicleZAngle(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],CarA);
    PutPlayerInVehicle(playerid,PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Das ist nicht dein Fahrzeug!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Du musst den richtigen Schlüssel ausgewählt haben!");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Du bist in keinem Fahrzeug!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Du bist nicht am /kennzeichen-Punkt.");
    return 1;
    }
    }


    Das Kauf system


    if(newkeys == 16)//Enter
    {
    new carid = dtc_AutohausCar[playerid];
    new car,preis,counter;
    for(new ah = 0; ah < sizeof(dtcKaufliste);ah++)
    {
    if(dtcKaufliste[ah][dtc_Autohaus] == autohaus)
    {
    if( counter == carid)
    {
    car = dtcKaufliste[ah][dtc_CarModel];
    preis = dtcKaufliste[ah][dtc_CarPreis];
    }
    counter ++;
    }
    }
    if(GetPlayerMoney(playerid) < preis){SendClientMessage(playerid,COLOR_GREY,"Du hast nicht genug Geld um dieses Fahrzeug zu kaufen!");} else {OnPlayerBuyCar(playerid,car,preis,autohaus);}
    //ResetPlayer
    DestroyVehicle(dtc_AutohausSCar[playerid]);
    SetPlayerPos(playerid, DtcSonstiges[autohaus][4][0],DtcSonstiges[autohaus][4][1],DtcSonstiges[autohaus][4][2]);
    SetPlayerFacingAngle(playerid,DtcSonstiges[autohaus][4][3]);
    dtc_AutohausCar[playerid] = 0;
    dtc_AutohausCat[playerid] = 2000;
    SetPlayerVirtualWorld(playerid,0);
    TextDrawHideForPlayer(playerid,CarKauf[playerid]);
    TextDrawDestroy(CarKauf[playerid]);
    TogglePlayerControllable(playerid,1);
    SetCameraBehindPlayer(playerid);
    }


    public OnPlayerBuyCar(playerid,Model,Preis,Autohaus)//CARSYS
    {
    if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    CallRemoteFunction("M_GivePlayerMoney","id",playerid,-Preis);
    if(Autohaus == 0)
    {
    AddToBizzTill(14,Preis);
    }
    else if(Autohaus == 1)
    {
    AddToBizzTill(12,Preis);
    }
    else if(Autohaus == 2)
    {
    AddToBizzTill(21,Preis);
    }
    else if(Autohaus == 3)
    {
    AddToBizzTill(15,Preis);
    }
    else if(Autohaus == 4)
    {
    AddToBizzTill(13,Preis);
    }
    SetParkPlatz(playerid,Autohaus);
    new name[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, name, sizeof name);
    format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
    new File: hFile = fopen(str, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=0\n");fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",Model);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=0\n");fwrite(hFile, var);
    format(var, 32, "CarHyd=0\n");fwrite(hFile, var);
    format(var, 32, "CarWheel=0\n");fwrite(hFile, var);
    format(var, 32, "CarAusp=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideL=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideR=0\n");fwrite(hFile, var);
    format(var, 32, "CarFB=0\n");fwrite(hFile, var);
    format(var, 32, "CarRB=0\n");fwrite(hFile, var);
    format(var, 32, "CarSpoiler=0\n");fwrite(hFile, var);
    format(var, 32, "CarRoof=0\n");fwrite(hFile, var);
    format(var, 32, "CarHood=0\n");fwrite(hFile, var);
    format(var, 32, "CarVents=0\n");fwrite(hFile, var);
    format(var, 32, "CarLamps=0\n");fwrite(hFile, var);
    format(var, 32, "CarPJ=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC1=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC2=-1\n");fwrite(hFile, var);
    format(var, 32, "Preis=%d\n",Preis);fwrite(hFile, var);
    format(var, 32, "CarPlate=0\n");fwrite(hFile, var);
    format(var, 32, "CarGesperrt=0\n");fwrite(hFile, var);
    format(var, 32, "CarSperrpreis=0\n");fwrite(hFile, var);
    fclose(hFile);
    }
    OnPlayerCarLogin(playerid);
    }
    }


    public OnPlayerCarLogin(playerid)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(!Dtc_PlayerHaveCar[playerid][x])
    {
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "/Autos/%s%d.dtcar", playername2,x);
    new File: UserFile = fopen(string2, io_read);
    if (UserFile)
    {
    Dtc_PlayerHaveCar[playerid][x] = 1;
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "CarId" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarId] = strval( val ); }
    if( strcmp( key , "CarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarModel] = strval( val ); }
    if( strcmp( key , "CarPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_x] = floatstr( val ); }
    if( strcmp( key , "CarPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_y] = floatstr( val ); }
    if( strcmp( key , "CarPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_z] = floatstr( val ); }
    if( strcmp( key , "CarRotate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRotate] = floatstr( val ); }
    if( strcmp( key , "CarNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarNitro] = strval( val ); }
    if( strcmp( key , "CarHyd" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHyd] = strval( val ); }
    if( strcmp( key , "CarWheel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarWheel] = strval( val ); }
    if( strcmp( key , "CarAusp" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarAusp] = strval( val ); }
    if( strcmp( key , "CarSideL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideL] = strval( val ); }
    if( strcmp( key , "CarSideR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideR] = strval( val ); }
    if( strcmp( key , "CarFB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarFB] = strval( val ); }
    if( strcmp( key , "CarRB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRB] = strval( val ); }
    if( strcmp( key , "CarSpoiler" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSpoiler] = strval( val ); }
    if( strcmp( key , "CarRoof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRoof] = strval( val ); }
    if( strcmp( key , "CarHood" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHood] = strval( val ); }
    if( strcmp( key , "CarVents" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarVents] = strval( val ); }
    if( strcmp( key , "CarLamps" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarLamps] = strval( val ); }
    if( strcmp( key , "CarPJ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPJ] = strval( val ); }
    if( strcmp( key , "CarC1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC1] = strval( val ); }
    if( strcmp( key , "CarC2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC2] = strval( val ); }
    if( strcmp( key , "Preis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPreis] = strval( val ); }
    if( strcmp( key , "CarNumber" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerCar[playerid][x][CarNumber], val, 0, strlen(val)-1, 255); }
    if( strcmp( key , "CarPlate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPlate] = strval( val ); }
    if( strcmp( key , "CarGesperrt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarGesperrt] = strval( val ); }
    if( strcmp( key , "CarSperrpreis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSperrpreis] = strval( val ); }
    }
    fclose(UserFile);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }


    public PlayerCarSpawn(playerid,Slot)
    {
    if(IsPlayerConnected(playerid))
    {
    if(Dtc_PlayerHaveCar[playerid][Slot])
    {
    PlayerCar[playerid][Slot][CarId] = CreateVehicle(PlayerCar[playerid][Slot][CarModel],PlayerCar[playerid][Slot][CarPos_x],PlayerCar[playerid][Slot][CarPos_y],PlayerCar[playerid][Slot][CarPos_z],PlayerCar[playerid][Slot][CarRotate],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2], 60000);/*vehicle spawn*/
    ChangeVehicleColor(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2]);
    if(PlayerCar[playerid][Slot][CarPJ] >= 0) {ChangeVehiclePaintjob(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarPJ]);}
    if(PlayerCar[playerid][Slot][CarNitro] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarNitro]);}
    if(PlayerCar[playerid][Slot][CarHyd] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHyd]);}
    if(PlayerCar[playerid][Slot][CarWheel] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarWheel]);}
    if(PlayerCar[playerid][Slot][CarAusp] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarAusp]);}
    if(PlayerCar[playerid][Slot][CarSideL] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideL]);}
    if(PlayerCar[playerid][Slot][CarSideR] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideR]);}
    if(PlayerCar[playerid][Slot][CarFB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarFB]);}
    if(PlayerCar[playerid][Slot][CarRB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRB]);}
    if(PlayerCar[playerid][Slot][CarSpoiler] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSpoiler]);}
    if(PlayerCar[playerid][Slot][CarRoof] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRoof]);}
    if(PlayerCar[playerid][Slot][CarHood] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHood]);}
    if(PlayerCar[playerid][Slot][CarVents] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarVents]);}
    if(PlayerCar[playerid][Slot][CarLamps] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarLamps]);}
    if(PlayerCar[playerid][Slot][CarPlate] != 0) {SetVehicleNumberPlate(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarNumber]);}
    if(Dtc_LockOnSpawn)
    {
    Dtc_Carlock[PlayerCar[playerid][Slot][CarId]] = 1;
    Dtc_LockCar(PlayerCar[playerid][Slot][CarId]);
    }
    }
    }
    }


    Also das man ein Kennzeichen direkt bekommt nach dem man das Auto gekauft hat.
    Außerdem speichert er das Kennzeichen icht wäre echt nett wenn mir jemand helfen könnte da ich echt nicht mehr weiter komme.


    MFg
    Troniix

    Hier sind noch mal ein paar zeilen


    public Fire_Check()
    {
    new rnd=random(MAX_FIRE);
    for(new o=0;o<MAX_FLAMES;o++)
    {
    DestroyObject(FireData[o]);
    }
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(GetPlayerSkin(i)==FIRE_SKIN)
    {
    SayIt(rnd);
    return CreateFire(rnd);
    }
    }
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys & KEY_FIRE && GetVehicleModel(GetPlayerVehicleID(playerid))==TRUCK_ID)
    {
    PlayerShoot[playerid]=SetTimerEx("Check_Player",500,1,"i",playerid);
    }
    else if(oldkeys & KEY_FIRE)
    {
    KillTimer(PlayerShoot[playerid]);
    PlayerShoot[playerid]=0;
    }
    return 1;
    }


    public Check_Player(playerid)//check player
    {
    new Float:oPos[3];
    if(PlayerShoot[playerid]!=0)
    {
    for(new o=0;o<MAX_FLAMES;o++)
    {
    GetObjectPos(FireData[o],oPos[0],oPos[1],oPos[2]);
    if(ZieltSpielerAufPunkt(playerid, oPos[0], oPos[1], oPos[2], 3))
    {
    PlayerCounter[playerid][o]+=1;
    if(PlayerCounter[playerid][o]==15)
    {
    GameTextForPlayer(playerid,"~r~Feuer ~w~geloescht",505,4);
    PlayerCounter[playerid][o]=0;
    GivePlayerMoney(playerid,FIRE_PAY);
    DisablePlayerCheckpoint(playerid);
    return DestroyObject(FireData[o]);
    }
    }
    }
    }
    return 1;
    }


    Bitte, Hoffe das mir noch jemand helfen kann.

    Guten Tag Breadfish
    ich habe mir ebend ein Filterscript für externes zufälliges Feuer geholt doch dieses Feuer lässt sich nicht von einen Löschfahrzeug löschen. Wo ist hier der fehler oder was kann ich dagegen machen?



    #define TRUCK_ID 407


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys & KEY_FIRE && GetVehicleModel(GetPlayerVehicleID(playerid))==TRUCK_ID)
    {
    PlayerShoot[playerid]=SetTimerEx("Check_Player",500,1,"i",playerid);
    }
    else if(oldkeys & KEY_FIRE)
    {
    KillTimer(PlayerShoot[playerid]);
    PlayerShoot[playerid]=0;
    }
    return 1;
    }





    Freue mich über jede positive Antwort


    MFG
    Troniix

    Dann muss ich
    new veh = GetPlayerVehicleID(playerid);
    CarImArsch[vehicleid] = 1;


    auch bei


    public OnVehicleDamageStatusUpdate(vehicleid, playerid)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new Float:health;
    GetVehicleHealth(vehicleid, health);
    if ( (floatround(health, floatround_round)/10) <= 53 ) {// Ab wieviel Schaden das auto ein Totalschaden bekommt
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    GameTextForPlayer(playerid, "~r~Das Auto hat ein Totalschaden.", 3, 1);
    SendClientMessage(playerid, COLOR_RED, "Dein Auto ist kaputt rufe das Ordnungsamt, damit sie dein Auto reparieren");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }


    oder wo muss das hin weil das erkennt ja nicht das dass Fahrzeug kaputt ist oder nicht?

    Aber wie mache ich das?
    Es ist ja nicht nur ein Auto die unter 350 Schaden haben und man soll ja nur raus fliegen wenn das auto schon kaputt ist.

    Guten Tag
    Ich arbeite grade an einen totalschaden system und nun habe ich das problem das ich nicht weiß wie ich das aktualieren kann. Also das heißt nachdem man aus dem auto geworfen wird ,dass man nicht mehr einsteigen kann.


    Also sozu sagen eine Auto sperre.


    public OnVehicleDamageStatusUpdate(vehicleid, playerid)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new Float:health;
    GetVehicleHealth(vehicleid, health);
    if ( (floatround(health, floatround_round)/10) <= 53 ) {// Ab wieviel Schaden das auto ein Totalschaden bekommt
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    GameTextForPlayer(playerid, "~r~Das Auto hat ein Totalschaden.", 3, 1);
    SendClientMessage(playerid, COLOR_RED, "Dein Auto ist kaputt rufe das Ordnungsamt, damit sie dein Auto reparieren");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }


    Oder wie mache ich das das man dann direkt wieder rausgeworfen wird?


    Wäre cool wenn jemand hilft.


    MFG
    TROniix

    Was ist dadran so schlimm? Die Idee ist recht gut.


    Hätte noch mehr funktionen haben können. Z.b mehere Dönerläden in Sa und mehr eigen gemapptes.


    Bewertung 5/10


    P.s Es gibt immer etwas besseres!

    Hier bitte.



    if(strcmp(cmd, "/veh", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] < 1337)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Admin!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new car;
    car = strval(tmp);
    if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Auto Nummer nicht weniger als 400 oder höher als 611 sein !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color1;
    color1 = strval(tmp);
    if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Nicht Weniger als 0 oder höher 126 !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color2;
    color2 = strval(tmp);
    if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Nicht weniger als 0 oder höher als 126 !"); return 1; }
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
    CreatedCars[CreatedCar] = carid;
    CreatedCar++;
    Gas[carid] = GetGasMax(car);
    format(string, sizeof(string), " Auto %d gespawned.", carid);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    return 1;
    }

    Guten Tag


    Ich habe ebend ein Befehl gescriptet um ein gespawntes auto zu löschen ,doch dieser Befehl geht nicht. Wo ist hier das problem komme echt nicht weiter?


    if(strcmp(cmd, "/dtc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 1338)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Das darfst du nicht tun!");
    return 1;
    }
    for(new i = 0; i < sizeof(CreatedCars); i++)
    {
    if(i != 0)
    {
    DestroyVehicle(i);
    }
    SendClientMessage(playerid, COLOR_GREY, " Fahrzeug erfolgreich zerstört !");
    }
    }
    return 1;
    }


    Mit freundlichen Grüßen
    Troniix

    Ich hätte es nicht finden können da es nicht im Script vorhanden. Und danke das hat geholfen #pragma unused ret_memcpy


    Ich bedanke mich an alle!!! :love::love::love::love:


    Mfg
    Troniix

    Guten Tag
    Ich weiß das Warnings nicht schlimm sind aber irgend wie mag ich die nicht :DDD


    Der Warning


    C:\Users\Darius\Desktop\sa server\gamemodes\Greenlightfix.pwn(63086) : warning 203: symbol is never used: "ret_memcpy"


    Aber Ret_memcpy hab ich nie verwendet.


    ich habe grade das autohaus raus genommen und alles ist draußen und plötzlich kam das.


    Wäre echt schön wenn jemand antwortet.


    MFG
    TRONIIX

    Guten tag
    Ich habe grade Junkbuster installiert . Doch nach dem ich die #include <JunkBuster> ins skript getan habe kamen plötzlich 12 Warnings anstellen wo ich gar nichts gemacht habe und wo sie früher nicht da waren.


    Die Warnings


    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(281) : warning 201: redefinition of constant/macro (symbol "PutPlayerInVehicle")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(288) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(295) : warning 201: redefinition of constant/macro (symbol "ResetPlayerMoney")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(302) : warning 201: redefinition of constant/macro (symbol "GetPlayerMoney")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(309) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(323) : warning 201: redefinition of constant/macro (symbol "SetVehiclePos")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(337) : warning 201: redefinition of constant/macro (symbol "ResetPlayerWeapons")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(344) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
    C:\Users\Darius\Desktop\sa server\pawno\include\JunkBuster.inc(351) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
    C:\Users\Darius\Desktop\sa server\gamemodes\Greenlightfix.pwn(24080) : warning 202: number of arguments does not match definition
    C:\Users\Darius\Desktop\sa server\gamemodes\Greenlightfix.pwn(31111) : warning 202: number of arguments does not match definition
    C:\Users\Darius\Desktop\sa server\gamemodes\Greenlightfix.pwn(31684) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    12 Warnings.


    Die zeilen:


    281-351


    {458,"Solair",135000,739.8586,-1343.2369,13.5212,260.6099,783.8115,-1351.3041,13.4243,89.2738},
    {467,"Oceanic",138000,739.8586,-1343.2369,13.5212,260.6099,783.7657,-1355.7397,13.2798,89.8498},
    {496,"Blista Compact",100000,739.8586,-1343.2369,13.5212,260.6099,784.3522,-1359.7819,13.2588,92.8627},
    {475,"Sabre",108000,739.8586,-1343.2369,13.5212,260.6099,784.0540,-1363.6578,13.3433,91.3383},
    {543,"Sadler",138000,739.8586,-1343.2369,13.5212,260.6099,784.0724,-1367.6761,13.3565,89.8814},
    {533,"Feltzer",129000,739.8586,-1343.2369,13.5212,260.6099,784.1492,-1371.3898,13.2631,90.9766},
    {540,"Vincent",108000,739.8586,-1343.2369,13.5212,260.6099,783.7069,-1374.9211,13.4604,88.7509},
    {565,"Flash",125000,739.8586,-1343.2369,13.5212,260.6099,783.8160,-1378.6798,13.2697,90.3132},
    {535,"Slamvan",200000,739.8586,-1343.2369,13.5212,260.6099,784.0175,-1382.5913,13.4522,86.6044},
    {474,"Hermes",138000,739.8586,-1343.2369,13.5212,260.6099,760.8021,-1379.1677,13.3962,271.1054},
    {545,"Hustler",115000,739.8586,-1343.2369,13.5212,260.6099,761.3039,-1376.0748,13.4067,270.2395},
    {550,"Sunrise",123000,739.8586,-1343.2369,13.5212,260.6099,761.0652,-1372.7755,13.4241,268.4661},
    {507,"Elegant",100000,739.8586,-1343.2369,13.5212,260.6099,760.6935,-1368.8972,13.3418,269.9946},
    {534,"Remington",90000,739.8586,-1343.2369,13.5212,260.6099,760.6251,-1365.3376,13.2246,268.2537},
    {602,"Alpha",110000,739.8586,-1343.2369,13.5212,260.6099,760.9346,-1361.8179,13.2460,270.8210},
    //Luxus 10
    {411,"Infernus",2500000,-1637.9468,1296.7834,7.0352,132.7516,-1667.3179,1206.3340,20.8833,302.5244},
    {559,"Jester",2000000,-1637.9468,1296.7834,7.0352,132.7516,-1657.4965,1205.1412,20.8127,2.6880},
    {558,"Uranus",1200000,-1637.9468,1296.7834,7.0352,132.7516,-1648.8109,1206.5079,20.7845,51.7230},
    {451,"Turismo",3500000,-1637.9468,1296.7834,7.0352,132.7516,-1659.0795,1218.5370,20.8576,197.4241},
    {562,"Elegy",1500000,-1637.9468,1296.7834,7.0352,132.7516,-1666.7043,1221.9187,20.8149,203.2796},
    {541,"Bullet",5000000,-1637.9468,1296.7834,7.0352,132.7516,-1677.0886,1207.3359,13.2985,280.1290},
    {506,"Super GT",3800000,-1637.9468,1296.7834,7.0352,132.7516,-1665.1005,1222.5503,13.4172,224.3459},
    {560,"Sultan",1500000,-1637.9468,1296.7834,7.0352,132.7516,-1658.6940,1216.4921,13.3778,148.1088},
    {477,"ZR-350",1800000,-1637.9468,1296.7834,7.0352,132.7516,-1649.8773,1208.3557,13.4246,51.4841},
    {415,"Cheetah",3200000,-1637.9468,1296.7834,7.0352,132.7516,-1666.9650,1205.7092,13.4077,310.3703},


    //Bikeautohaus 7
    {468,"Sanchez",35000,1983.1168,2048.2510,10.8203,318.9629,1979.1255,2061.2710,10.4833,130.4523},
    {461,"PCJ-600",70000,1983.1168,2048.2510,10.8203,318.9629,1982.8433,2060.5815,10.4029,158.1251},
    {463,"Freeway",90000,1983.1168,2048.2510,10.8203,318.9629,1994.9220,2050.3254,10.3540,120.9672},
    {462,"Faggio",15000,1983.1168,2048.2510,10.8203,318.9629,1995.5065,2046.6947,10.4020,123.2511},
    {471,"Quad",60000,1983.1168,2048.2510,10.8203,318.9629,1994.9058,2054.7947,10.3012,136.9546},
    {521,"FCR-900",90000,1983.1168,2048.2510,10.8203,318.9629,1994.9722,2042.4457,10.3755,117.4199},
    {581,"BF-400",57000,1983.1168,2048.2510,10.8203,318.9629,1990.3751,2060.6970,10.4128,136.4718}
    };
    enum Ainfo
    {
    Float:Park_x,
    Float:Park_y,
    Float:Park_z,
    Float:Park_rot,
    Farbe1,
    Farbe2,
    Paintjob,
    Spoiler,
    Hood,
    Roof,
    Sideskirt,
    Lamps,
    Nitro,
    Exhaust,
    Wheels,
    Stereo,
    Hydraulics,
    FrontBumper,
    RearBumper,
    VentRight,
    VentLeft,
    modelid,
    preis
    }
    new Autos[MAX_PLAYERS][MAX_PLAYER_CARS][Ainfo];


    //autonachricht
    forward Servernachricht();


    /********************************************************************************************************************/
    //============================================ 0.3c DEFINITIONEN ====================================================
    /********************************************************************************************************************/
    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


    24080
    if (strcmp("/pdlift", cmdtext, true) == 0)
    {
    if(IsACop(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 226.0206,183.8430,1003.0313))
    {
    SetPlayerPos(playerid, 1557.1471,-1675.6034,28.3955,101.4593);//Hier ist der Warning
    GameTextForPlayer(playerid, "~g~LSPD Dach", 5000, 1);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1557.1471,-1675.6034,28.3955))
    {
    SetPlayerPos(playerid, 226.0206,183.8430,1003.0313);
    SetPlayerInterior(playerid, 3);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 20.0, 1560.1989746094, -1636.033203125, 12.467700004578) || IsPlayerInRangeOfPoint(playerid, 20.0, 1560.1989746094, -1636.033203125, 12.467700004578))
    {
    if(LSLift == false)
    {
    SendClientMessage(playerid, COLOR_GREEN, "Bitte warten...");
    MoveObject(LSPDLift, 1560.1989746094, -1636.033203125, 27.297700881958, 1.5);
    LSLift = true;
    }
    else if(LSLift == true)
    {
    SendClientMessage(playerid, COLOR_RED, "Bitte warten...");
    MoveObject(LSPDLift, 1560.1989746094, -1636.033203125, 12.467700004578, 1.5);
    LSLift = false;
    }
    }
    }
    }


    3111
    else if(IsPlayerInRangeOfPoint(playerid,3.0,595.2687,-1249.7780,18.2601))
    {
    GameTextForPlayer(playerid, "~w~Willkommen im Arbeitsamt~n~ benutze ~r~/jobs", 5000, 1);
    SetPlayerInterior(playerid, 15);
    SetPlayerPos(playerid,2216.3401,-1150.5100,1025.7969,270.0000);//hier
    }


    31684
    else if(IsPlayerInRangeOfPoint(playerid,3.0,2216.3401,-1150.5100,1025.7969))
    {
    GameTextForPlayer(playerid, "~w~Sehen wir uns wieder?!", 5000, 1);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,595.1260,-1249.7556,18.2558,12.6570);//Hier
    }


    Ich hab keine Ahnung wo die her kamen den die kamen plötzlich. Nach dem ich Junkbuster 11 Installiert habe.


    MFG
    TRONIIX


    P.S freue mich über jede Art von Hilfe

    Guten Tag


    Ich arbeite grade an einem autohaus script. Es funktioniert alles. Doch wenn man das Auto kauft und es nicht /parkt und man reloggt ist das Auto weg und Spawnt nicht wieder. Also bei dem Kauf speichert er den falsche wert oder so. in der datei steht dann posx: 000000 und wenn ich /park eingebe über nimmt er die geparkte coordinate dann steht da z.b posx: 12345678 und das auto spawnt dann nach einen restart. wieder da.


    Wäre echt cool wenn ihr mir helfen könntet.


    der /park befehl



    if(strcmp(cmdtext, "/park", true) == 0)
    {
    new inveh = 0;
    for(new i= 0;i < MAX_PLAYER_CARS;i++)
    {
    if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,FARBE_AUTOHAUS0,"Du musst in Deinem Auto sitzen!");
    new vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid == auto[playerid])
    {
    new Float:x,Float:y,Float:z,Float:rot;
    GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
    GetVehicleZAngle(GetPlayerVehicleID(playerid),rot);
    Autos[playerid][Park_x] = x;
    Autos[playerid][Park_y] = y;
    Autos[playerid][Park_z] = z;
    Autos[playerid][Park_rot] = rot;
    new Car[128];
    format(Car,sizeof(Car),"/Car/%s's Auto %d.txt",SpielerName(playerid), i);
    dini_FloatSet(Car,"Car_X",Autos[playerid][Park_x]);
    dini_FloatSet(Car,"Car_y",Autos[playerid][Park_y]);
    dini_FloatSet(Car,"Car_Z",Autos[playerid][Park_z]);
    dini_FloatSet(Car,"Car_ROT",Autos[playerid][Park_rot]);
    SendClientMessage(playerid,0xFFFF00FF,"*Du hast dein Auto nun hier geparkt, du wirst es nun immer hier wieder finden.");
    }
    else
    {
    inveh = 1;
    continue;
    }
    }
    if(inveh == 0)
    {
    SendClientMessage(playerid,FARBE_AUTOHAUS0,"*Für dieses Auto besitzt du keine Schlüssel oder du bist zu weit weg!");
    }
    return 1;
    }


    Der Stock für den kauf



    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;
    }
    }
    }


    On playerconnect



    //autohaus
    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]


    und hier ist der Stock für den /Buycar Dialog



    [/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]enum AKinfo
    {
    modelid,
    Name[54],
    preis,
    Float:kaufx,
    Float:kaufy,
    Float:kaufz,
    Float:kaufrot,
    Float:spawnx,
    Float:spawny,
    Float:spawnz,
    Float:spawnrot
    }[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]


    und der ainfo stock



    [/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]enum Ainfo
    {
    Float:Park_x,
    Float:Park_y,
    Float:Park_z,
    Float:Park_rot,
    Farbe1,
    Farbe2,
    Paintjob,
    Spoiler,
    Hood,
    Roof,
    Sideskirt,
    Lamps,
    Nitro,
    Exhaust,
    Wheels,
    Stereo,
    Hydraulics,
    FrontBumper,
    RearBumper,
    VentRight,
    VentLeft,
    modelid,
    preis
    }[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][/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]


    Ich hoffe jemand hat eine IDee. Ich würde mich echt über positivte Antworten freuen. Falls euch noch Codes fehlen einfach schreiben.


    MFG
    TRONIIXLP