Beiträge von LordHit


    C:\Users\steven\Desktop\Script 1\Script 1\gamemodes\LDL13k ohne haus.pwn(18435) : error 047: array sizes do not match, or destination array is too small
    C:\Users\steven\Desktop\Script 1\Script 1\gamemodes\LDL13k ohne haus.pwn(18446) : error 047: array sizes do not match, or destination array is too small
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.




    stock hausladen()
    {
    new hdatei[200], hausstring[200];
    for(new i = 0; i < MAX_HOUSE; i++)
    {
    format(hdatei,50,"/houser/%d.txt",i);
    if(!fexist(hdatei))return 0;
    HouseInfo[i][HSpielername] = dini_Get(hdatei, "Hausbesitzer");//fehler
    HouseInfo[i][Hix] = dini_Float(hdatei,"iX");
    HouseInfo[i][Hiy] = dini_Float(hdatei,"iY");
    HouseInfo[i][Hiz] = dini_Float(hdatei,"iZ");
    HouseInfo[i][HaX] = dini_Float(hdatei,"aX");
    HouseInfo[i][HaY] = dini_Float(hdatei,"aX");
    HouseInfo[i][HaZ] = dini_Float(hdatei,"aX");
    HouseInfo[i][hkaufbar] = dini_Int(hdatei,"hkaufbar");
    HouseInfo[i][HHousekey] = dini_Int(hdatei,"HHousekey");
    HouseInfo[i][HLock] = dini_Int(hdatei,"HLock");
    HouseInfo[i][HPW] = dini_Int(hdatei,"HPW");
    HouseInfo[i][Hpassword] = dini_Get(hdatei, "Hpassword");//fehler
    HouseInfo[i][Hrent] = dini_Int(hdatei,"Hrent");
    HouseInfo[i][Hrentpreis] = dini_Int(hdatei,"Hrentpreis");
    HouseInfo[i][HLevel] = dini_Int(hdatei,"HLevel");
    HouseInfo[i][Hpreis] = dini_Int(hdatei,"Hpreis");
    HouseInfo[i][Hdrogen] = dini_Int(hdatei,"Hdrogen");
    HouseInfo[i][Hmats] = dini_Int(hdatei,"Hmats");
    if(HouseInfo[i][hkaufbar] == 0)
    {
    format(hausstring, sizeof(hausstring), "Haus zu kaufen\nPreis %d\nLevel %d", HouseInfo[i][Hpreis],HouseInfo[i][HLevel]);
    Create3DTextLabel(hausstring, 0x008080FF, HouseInfo[i][HaX], HouseInfo[i][HaY], HouseInfo[i][HaZ], 40.0, 0, 0);
    }
    else
    {
    if(HouseInfo[i][Hrent] == 1)
    {
    format(hausstring, sizeof(hausstring), "Besitzer: \nmietbar: ja\n Miete: %D ",HouseInfo[i][HSpielername], HouseInfo[i][Hrentpreis]);
    Create3DTextLabel(hausstring, 0x008080FF, HouseInfo[i][HaX], HouseInfo[i][HaY], HouseInfo[i][HaZ], 40.0, 0, 0);
    }
    else
    {
    format(hausstring, sizeof(hausstring), "Besitzer: \nmietbar: nein", HouseInfo[i][HSpielername]);
    Create3DTextLabel(hausstring, 0x008080FF, HouseInfo[i][HaX], HouseInfo[i][HaY], HouseInfo[i][HaZ], 40.0, 0, 0);
    }
    }
    }
    return 1;
    }



    könntet ihr mir helfen bei den fahler helfen
    danke im voraus :)




    msfg


    steven [riesensika/Lordhit]

    der dialog beim einsteigen des autos öffnet sich nicht warum?
    man wird gefreezt das wars aber auch schon


    oben


    #define MaxVeh 5



    #define SCM SendClientMessage



    enum cInfo
    {
    CarId,
    CarOwner[MAX_PLAYER_NAME],
    CarModel,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    CarNitro,
    CarHyd,
    CarWheel,
    CarAusp,
    CarSideL,
    CarSideR,
    CarFB,
    CarRB,
    CarSpoiler,
    CarRoof,
    CarHood,
    CarVents,
    CarLamps,
    CarPJ,
    CarC1,
    CarC2,
    CarPreis,
    CarTank,
    CarMaxTank,
    CarState
    }
    new PlayerCar[MAX_PLAYERS][MaxVeh][cInfo];
    new Spectating[MAX_PLAYERS][1];
    new pCP[MAX_PLAYERS];



    enum ahSpawn
    {
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    };
    new Autospawns[1][ahSpawn] = {
    {991.7200,-1335.4635,13.3828,272.5566}
    };

    enum aHaus
    {
    Name[128],
    Autohaus,
    Modelid,
    Carid,
    aPreis,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    Tank,
    };
    new Kaufliste[12][aHaus] = {



    // Intercars - Fahrzeugname, 0, Fahrzeug ID, FAhrzeug Preis, x,y,z,r,Tank
    {"Solair", 0, 458, 1, 15000, 1014.4832,-1345.1400,13.2701,86.6874, 70},
    // {"Strech", 0, 409, 1, 1250000, 1372.2598,-1780.4355,14.2560,50.7219, 125},
    {"Sunrise", 0, 550, 1, 17000, 1014.8960,-1350.1807,13.1689,90.3120, 60},
    {"Sentinel", 0, 405, 1, 20000, 1014.8726,-1360.5687,13.2820,91.4990, 50},
    {"Landstalker", 0, 400, 1, 18000, 1014.6984,-1365.0400,13.4427,90.6577, 60},
    {"Elegant", 0, 507, 1, 20000, 991.7257,-1368.3928,13.2183,270.5254, 70},
    {"Nebula", 0, 516, 1, 150000, 991.7772,-1364.6997,13.2218,268.3752, 35},
    {"Willard", 0, 529, 1, 5000, 992.3073,-1360.6838,12.9411,270.3429, 35},
    {"Primo", 0, 547, 1, 10000, 991.8157,-1357.0276,13.1080,274.5017, 120},
    {"Club", 0, 589, 1, 5000, 991.8795,-1353.4607,13.0076,269.6971, 120},
    {"Emperor", 0, 585, 1, 13000, 992.3187,-1349.8716,12.9632,268.9381, 80},
    {"Moonbeam", 0, 418, 1, 7000, 992.2755,-1346.4882,13.4447,269.9544, 80},
    {"pony", 0, 413, 1, 25000, 992.6348,-1342.4216,13.4461,271.9776, 20}
    };
    new PlayerHaveCar[MAX_PLAYERS][MaxVeh];
    new PlayerKey[MAX_PLAYERS];
    new Carlock[700];
    new SideR, SideL;



    wenn man i m auto sitzt


    if(newstate == PLAYER_STATE_DRIVER) //buggy dont finnish
    {// 38 / 49 / 56 = SS
    new vehicleid = GetPlayerVehicleID(playerid);
    new typ, string1[128];
    typ=IsAutohausCar(vehicleid);
    if(typ!=-1)
    {
    TogglePlayerControllable(playerid, 0);
    Spectating[playerid][0]=typ;
    format(string1, sizeof(string1), "{336666}Fahrzeug:{FFFFFF}\t %s\n{336666}Preis:{FFFFFF}\t\t $%d\n{336666}Tank:{FFFFFF}\t\t %dLiter", Kaufliste[typ][Name], Kaufliste[typ][aPreis], Kaufliste[typ][Tank]);
    ShowPlayerDialog(playerid, DIALOG_SELLCAR, DIALOG_STYLE_MSGBOX, "{FF9933}Autohaus", string, "Kaufen", "Abbrechen");
    }
    for(new i=0; i<MAX_CARS; i++)
    {
    if(GetPlayerVehicleID(playerid)==Frakcar[i])
    {
    if(PlayerInfo[playerid][pMember] != FCInfo[i][Frakid] && PlayerInfo[playerid][pLeader] != FCInfo[i][Frakid]) // && PlayerInfo[playerid][pAdmin] < ADMLVL)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_LIGHTRED,"Du darfst dieses Fahrzeug nicht fahren.");
    }
    }
    }
    new newcar = GetPlayerVehicleID(playerid);
    new oldcar = gLastCar[playerid];
    new housecar = PlayerInfo[playerid][pPhousekey]+1;
    TelePos[playerid][0] = 0.0;
    TelePos[playerid][1] = 0.0;
    if(IsAPlane(newcar))
    {
    if(PlayerInfo[playerid][pFlyLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast keinen Flugschein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsABike(newcar))
    {
    if(PlayerInfo[playerid][pMotoLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast kein Motorrad Schein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsALKW(newcar))
    {
    if(PlayerInfo[playerid][pLKWLic] == 0)
    {
    if(TakingLesson[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast kein LKW Schein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsANoLicVehicle(newcar)) { }
    else
    {
    if(PlayerInfo[playerid][pCarLic] < 1)
    {
    if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    if((TakingLesson[playerid] == 1) || IsPlayerNPC(playerid))
    {
    }
    else {
    SendClientMessage(playerid, COLOR_GREY, " Du hast noch keinen Führerschein !");
    RemovePlayerFromVehicle(playerid);
    return 1; }
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    }//Done with car check



    if(GetVehicleModel(newcar) == 408)
    {
    if(PlayerInfo[playerid][pJob] == 17)
    {
    if(Mullabfuhr[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_YELLOW," Um deinen Dienst als Müllmann zu starten, benutze /starten");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist nur für Müllmänner da!");
    RemovePlayerFromVehicle(playerid);
    }
    }



    for(new v=0; v<sizeof(HafenKlause); v++)
    {
    if(newcar == HafenKlause[v])
    {
    new cost = SBizzInfo[1][sbEntranceCost];
    if(GetPlayerMoney(playerid) >= cost)
    {
    GivePlayerMoney(playerid,-cost);
    SBizzInfo[1][sbTill] += cost;
    format(string,sizeof(string),"Bootsfahrt:Du zahlst $%d",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    //GameTextForPlayer(playerid,string,5000,3);
    }
    else
    {
    format(string,sizeof(string)," Die Bootsfahrt kostet $%d. Du hast nicht soviel!",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    }
    if(PlayerInfo[playerid][pAdmin] > 0) { return 1; }



    if(newcar == HitmanLeaderBullet && PlayerInfo[playerid][pLeader] != 8)
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Hitmen!");
    RemovePlayerFromVehicle(playerid);
    }
    if(GetVehicleModel(newcar) == 525 && !IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Abschleppfirma!");
    RemovePlayerFromVehicle(playerid);
    }
    if(PlayerKarting[playerid] != 0)
    {
    new kart = GetPlayerVehicleID(playerid);
    if(kart==110||kart==111||kart==112||kart==113||kart==114||kart==115)
    {
    PlayerInKart[playerid] = 1;
    KartingPlayers ++;
    }
    }
    if(GetVehicleModel(newcar) == 582 || GetVehicleModel(newcar) == 488)
    {
    if(!IsPlayerInFrac(playerid,9))
    {
    SendClientMessage(playerid,COLOR_GREY," Dieses Fahrzeug darfst du nur als News Reporter benutzen!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsABus(newcar) && newcar != RMBus)
    {
    if(PlayerInfo[playerid][pJob] != 14)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Busfahrer !");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsATaxi(newcar))
    {
    if(!IsPlayerInFrac(playerid,10))
    {
    SendClientMessage(playerid,COLOR_GREY," Dieses Fahrzeug darfst du nur als Taxifahrer benutzen!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsACopCar(newcar))
    {
    if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) { }
    else { RemovePlayerFromVehicle(playerid); return 1;}
    }
    if(IsATruck(GetPlayerVehicleID(playerid)))
    {
    format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
    SendClientMessage(playerid, COLOR_WHITE, "INFO: Du kannst mit diesem Fahrzeug Produkte ausliefern.");
    SendClientMessage(playerid, COLOR_WHITE, "INFO: Die Befehle lauten: /load /buyprods /sellprods");
    }
    if(oldcar != 301)
    {
    if((housecar != oldcar && oldcar != 0) && (HireCar[playerid] != oldcar && newcar != housecar))
    {
    if(gLastDriver[oldcar] == playerid && oldcar != newcar)
    {
    gLastDriver[oldcar] = 300;
    gCarLock[oldcar] = 0;
    UnLockCar(oldcar);
    }
    }
    }



    gLastCar[playerid] = newcar;
    gLastDriver[newcar] = playerid;
    }




    der Dialog



    if(dialogid==DIALOG_SELLCAR)
    {
    if(response)
    {
    print("D1");
    if(Spectating[playerid][0]!=-1)
    {
    print("D2");
    if(!PlayerHaveCar[playerid][PlayerKey[playerid]])
    {
    print("D3");
    new preis = Kaufliste[Spectating[playerid][0]][aPreis];
    print("D4");
    if(GetPlayerMoney(playerid) > preis)
    {
    // new name[MAX_PLAYER_NAME];
    print("D5");
    new autohaus=Kaufliste[Spectating[playerid][0]][Autohaus];
    GivePlayerMoney(playerid, -preis);
    print("D6");
    new prname[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, prname, sizeof prname);
    format(str, sizeof str, "/Autos/%s_Car_%d.ini", prname,PlayerKey[playerid]);
    new File: hFile = fopen(str, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n", PlayerCar[playerid][PlayerKey[playerid]][CarId]=Spectating[playerid][0]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][PlayerKey[playerid]][CarModel]=Kaufliste[Spectating[playerid][0]][Modelid]);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_x]=Autospawns[autohaus][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_y]=Autospawns[autohaus][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_z]=Autospawns[autohaus][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarRotate]=Autospawns[autohaus][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",PlayerCar[playerid][PlayerKey[playerid]][CarPreis]=preis/2);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n", Kaufliste[Spectating[playerid][0]][Tank]); fwrite(hFile, var);
    format(var, 32, "MaxTank=%d\n", Kaufliste[Spectating[playerid][0]][Tank]); fwrite(hFile, var);
    format(var, 32, "CarState=%d\n", PlayerCar[playerid][PlayerKey[playerid]][CarState]);fwrite(hFile, var);
    fclose(hFile);
    }



    PlayerCar[playerid][PlayerKey[playerid]][CarId]=Spectating[playerid][0];
    PlayerCar[playerid][PlayerKey[playerid]][CarModel]=Kaufliste[Spectating[playerid][0]][Modelid];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_x]=Autospawns[autohaus][CarPos_x];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_y]=Autospawns[autohaus][CarPos_y];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_z]=Autospawns[autohaus][CarPos_z];
    PlayerCar[playerid][PlayerKey[playerid]][CarRotate]=Autospawns[autohaus][CarRotate];
    PlayerCar[playerid][PlayerKey[playerid]][CarNitro]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHyd]=0;
    print("D7");
    PlayerCar[playerid][PlayerKey[playerid]][CarWheel]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarAusp]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideL]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideR]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarFB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSpoiler]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRoof]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHood]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarVents]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarLamps]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarPJ]=-1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC1]=1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC2]=1;
    print("D8");
    PlayerCar[playerid][PlayerKey[playerid]][CarPreis]=preis/2;
    PlayerCar[playerid][PlayerKey[playerid]][CarTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarMaxTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarState]=0;
    print("D9");
    PlayerCar[playerid][PlayerKey[playerid]][CarId] = CreateVehicle(PlayerCar[playerid][PlayerKey[playerid]][CarModel],PlayerCar[playerid][PlayerKey[playerid]][CarPos_x],PlayerCar[playerid][PlayerKey[playerid]][CarPos_y],PlayerCar[playerid][PlayerKey[playerid]][CarPos_z],PlayerCar[playerid][PlayerKey[playerid]][CarRotate],PlayerCar[playerid][PlayerKey[playerid]][CarC1],PlayerCar[playerid][PlayerKey[playerid]][CarC2], -1);/*vehicle spawn*/
    Gas[PlayerCar[playerid][PlayerKey[playerid]][CarId]] = Kaufliste[Spectating[playerid][0]][Tank];
    gGas[PlayerCar[playerid][PlayerKey[playerid]][CarId]] = Kaufliste[Spectating[playerid][0]][Tank];
    SetVehicleParamsEx(PlayerCar[playerid][PlayerKey[playerid]][CarId], false, false, false, true, false, false, false);
    SetVehicleNumberPlate(PlayerCar[playerid][PlayerKey[playerid]][CarId], SpielerName(playerid));
    RemovePlayerFromVehicle(playerid);
    print("D10");
    FreezePlayer(playerid);
    print("D11");
    UnfreezePlayer(playerid);
    print("D12");
    new Float:x, Float: y, Float:z;
    GetVehiclePos(PlayerCar[playerid][PlayerKey[playerid]][CarId], x, y, z);
    SetPlayerCheckpoint(playerid, x,y,z, 5.0);
    PlayerHaveCar[playerid][PlayerKey[playerid]] = 1;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Das Fahrzeug steht am Ausgabe Punkt bereit.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mit /carhelp siehst du die Fahrzeug Befehle.");
    }
    else
    {
    SendClientMessage(playerid, ROT, "Du hast nicht genügend Geld dabei!");
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    UnfreezePlayer(playerid);
    return 1;
    }
    }
    else
    {
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, BLAU, "Auf diesem Schlüssel ist bereits ein Fahrzeug!");
    UnfreezePlayer(playerid);
    return 1;
    }
    }
    }
    if(!response)
    {
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    UnfreezePlayer(playerid);
    return 1;
    }
    }



    bitte um hife der dialofg öffnet sich nicht


    mfg LordHit

    der dialog beim einsteigen des autos öffnet sich nicht warum?
    man wird gefreezt das wars aber auch schon



    oben

    enum ahSpawn
    {
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    };
    new Autospawns[1][ahSpawn] = {
    {991.7200,-1335.4635,13.3828,272.5566}
    };

    enum aHaus
    {
    Name[128],
    Autohaus,
    Modelid,
    Carid,
    aPreis,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    Tank,
    };
    new Kaufliste[12][aHaus] = {



    // Intercars - Fahrzeugname, 0, Fahrzeug ID, FAhrzeug Preis, x,y,z,r,Tank
    {"Solair", 0, 458, 1, 15000, 1014.4832,-1345.1400,13.2701,86.6874, 70},
    // {"Strech", 0, 409, 1, 1250000, 1372.2598,-1780.4355,14.2560,50.7219, 125},
    {"Sunrise", 0, 550, 1, 17000, 1014.8960,-1350.1807,13.1689,90.3120, 60},
    {"Sentinel", 0, 405, 1, 20000, 1014.8726,-1360.5687,13.2820,91.4990, 50},
    {"Landstalker", 0, 400, 1, 18000, 1014.6984,-1365.0400,13.4427,90.6577, 60},
    {"Elegant", 0, 507, 1, 20000, 991.7257,-1368.3928,13.2183,270.5254, 70},
    {"Nebula", 0, 516, 1, 150000, 991.7772,-1364.6997,13.2218,268.3752, 35},
    {"Willard", 0, 529, 1, 5000, 992.3073,-1360.6838,12.9411,270.3429, 35},
    {"Primo", 0, 547, 1, 10000, 991.8157,-1357.0276,13.1080,274.5017, 120},
    {"Club", 0, 589, 1, 5000, 991.8795,-1353.4607,13.0076,269.6971, 120},
    {"Emperor", 0, 585, 1, 13000, 992.3187,-1349.8716,12.9632,268.9381, 80},
    {"Moonbeam", 0, 418, 1, 7000, 992.2755,-1346.4882,13.4447,269.9544, 80},
    {"pony", 0, 413, 1, 25000, 992.6348,-1342.4216,13.4461,271.9776, 20}
    };



    wenn er im fahzeug ist



    if(newstate == PLAYER_STATE_DRIVER) //buggy dont finnish
    {// 38 / 49 / 56 = SS
    new vehicleid = GetPlayerVehicleID(playerid);
    new typ, string1[128];
    typ=IsAutohausCar(vehicleid);
    if(typ!=-1)
    {
    FreezePlayer(playerid);
    Spectating[playerid][0]=typ;
    format(string1, sizeof(string1), "{336666}Fahrzeug:{FFFFFF}\t %s\n{336666}Preis:{FFFFFF}\t\t $%d\n{336666}Tank:{FFFFFF}\t\t %dLiter", Kaufliste[typ][Name], Kaufliste[typ][aPreis], Kaufliste[typ][Tank]);
    ShowPlayerDialog(playerid, DIALOG_SELLCAR, DIALOG_STYLE_MSGBOX, "{FF9933}Autohaus", string, "Kaufen", "Abbrechen");
    }
    for(new i=0; i<MAX_CARS; i++)
    {
    if(GetPlayerVehicleID(playerid)==Frakcar[i])
    {
    if(PlayerInfo[playerid][pMember] != FCInfo[i][Frakid] && PlayerInfo[playerid][pLeader] != FCInfo[i][Frakid]) // && PlayerInfo[playerid][pAdmin] < ADMLVL)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_LIGHTRED,"Du darfst dieses Fahrzeug nicht fahren.");
    }
    }
    }
    new newcar = GetPlayerVehicleID(playerid);
    new oldcar = gLastCar[playerid];
    new housecar = PlayerInfo[playerid][pPhousekey]+1;
    TelePos[playerid][0] = 0.0;
    TelePos[playerid][1] = 0.0;
    if(IsAPlane(newcar))
    {
    if(PlayerInfo[playerid][pFlyLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast keinen Flugschein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsABike(newcar))
    {
    if(PlayerInfo[playerid][pMotoLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast kein Motorrad Schein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsALKW(newcar))
    {
    if(PlayerInfo[playerid][pLKWLic] == 0)
    {
    if(TakingLesson[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du hast kein LKW Schein !");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsANoLicVehicle(newcar)) { }
    else
    {
    if(PlayerInfo[playerid][pCarLic] < 1)
    {
    if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    if((TakingLesson[playerid] == 1) || IsPlayerNPC(playerid))
    {
    }
    else {
    SendClientMessage(playerid, COLOR_GREY, " Du hast noch keinen Führerschein !");
    RemovePlayerFromVehicle(playerid);
    return 1; }
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
    }
    }//Done with car check



    if(GetVehicleModel(newcar) == 408)
    {
    if(PlayerInfo[playerid][pJob] == 17)
    {
    if(Mullabfuhr[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_YELLOW," Um deinen Dienst als Müllmann zu starten, benutze /starten");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist nur für Müllmänner da!");
    RemovePlayerFromVehicle(playerid);
    }
    }



    for(new v=0; v<sizeof(HafenKlause); v++)
    {
    if(newcar == HafenKlause[v])
    {
    new cost = SBizzInfo[1][sbEntranceCost];
    if(GetPlayerMoney(playerid) >= cost)
    {
    GivePlayerMoney(playerid,-cost);
    SBizzInfo[1][sbTill] += cost;
    format(string,sizeof(string),"Bootsfahrt:Du zahlst $%d",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    //GameTextForPlayer(playerid,string,5000,3);
    }
    else
    {
    format(string,sizeof(string)," Die Bootsfahrt kostet $%d. Du hast nicht soviel!",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    }
    if(PlayerInfo[playerid][pAdmin] > 0) { return 1; }



    if(newcar == HitmanLeaderBullet && PlayerInfo[playerid][pLeader] != 8)
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Hitmen!");
    RemovePlayerFromVehicle(playerid);
    }
    if(GetVehicleModel(newcar) == 525 && !IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Abschleppfirma!");
    RemovePlayerFromVehicle(playerid);
    }
    if(PlayerKarting[playerid] != 0)
    {
    new kart = GetPlayerVehicleID(playerid);
    if(kart==110||kart==111||kart==112||kart==113||kart==114||kart==115)
    {
    PlayerInKart[playerid] = 1;
    KartingPlayers ++;
    }
    }
    if(GetVehicleModel(newcar) == 582 || GetVehicleModel(newcar) == 488)
    {
    if(!IsPlayerInFrac(playerid,9))
    {
    SendClientMessage(playerid,COLOR_GREY," Dieses Fahrzeug darfst du nur als News Reporter benutzen!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsABus(newcar) && newcar != RMBus)
    {
    if(PlayerInfo[playerid][pJob] != 14)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Busfahrer !");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsATaxi(newcar))
    {
    if(!IsPlayerInFrac(playerid,10))
    {
    SendClientMessage(playerid,COLOR_GREY," Dieses Fahrzeug darfst du nur als Taxifahrer benutzen!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(IsACopCar(newcar))
    {
    if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) { }
    else { RemovePlayerFromVehicle(playerid); return 1;}
    }
    if(IsATruck(GetPlayerVehicleID(playerid)))
    {
    format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
    SendClientMessage(playerid, COLOR_WHITE, "INFO: Du kannst mit diesem Fahrzeug Produkte ausliefern.");
    SendClientMessage(playerid, COLOR_WHITE, "INFO: Die Befehle lauten: /load /buyprods /sellprods");
    }
    if(oldcar != 301)
    {
    if((housecar != oldcar && oldcar != 0) && (HireCar[playerid] != oldcar && newcar != housecar))
    {
    if(gLastDriver[oldcar] == playerid && oldcar != newcar)
    {
    gLastDriver[oldcar] = 300;
    gCarLock[oldcar] = 0;
    UnLockCar(oldcar);
    }
    }
    }



    gLastCar[playerid] = newcar;
    gLastDriver[newcar] = playerid;
    }




    der Dialog




    if(dialogid==DIALOG_SELLCAR)
    {
    if(response)
    {
    print("D1");
    if(Spectating[playerid][0]!=-1)
    {
    print("D2");
    if(!PlayerHaveCar[playerid][PlayerKey[playerid]])
    {
    print("D3");
    new preis = Kaufliste[Spectating[playerid][0]][aPreis];
    print("D4");
    if(GetPlayerMoney(playerid) > preis)
    {
    // new name[MAX_PLAYER_NAME];
    print("D5");
    new autohaus=Kaufliste[Spectating[playerid][0]][Autohaus];
    GivePlayerMoney(playerid, -preis);
    print("D6");
    new prname[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, prname, sizeof prname);
    format(str, sizeof str, "/Autos/%s_Car_%d.ini", prname,PlayerKey[playerid]);
    new File: hFile = fopen(str, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n", PlayerCar[playerid][PlayerKey[playerid]][CarId]=Spectating[playerid][0]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][PlayerKey[playerid]][CarModel]=Kaufliste[Spectating[playerid][0]][Modelid]);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_x]=Autospawns[autohaus][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_y]=Autospawns[autohaus][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarPos_z]=Autospawns[autohaus][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][PlayerKey[playerid]][CarRotate]=Autospawns[autohaus][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",PlayerCar[playerid][PlayerKey[playerid]][CarPreis]=preis/2);fwrite(hFile, var);
    format(var, 32, "Tank=%d\n", Kaufliste[Spectating[playerid][0]][Tank]); fwrite(hFile, var);
    format(var, 32, "MaxTank=%d\n", Kaufliste[Spectating[playerid][0]][Tank]); fwrite(hFile, var);
    format(var, 32, "CarState=%d\n", PlayerCar[playerid][PlayerKey[playerid]][CarState]);fwrite(hFile, var);
    fclose(hFile);
    }



    PlayerCar[playerid][PlayerKey[playerid]][CarId]=Spectating[playerid][0];
    PlayerCar[playerid][PlayerKey[playerid]][CarModel]=Kaufliste[Spectating[playerid][0]][Modelid];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_x]=Autospawns[autohaus][CarPos_x];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_y]=Autospawns[autohaus][CarPos_y];
    PlayerCar[playerid][PlayerKey[playerid]][CarPos_z]=Autospawns[autohaus][CarPos_z];
    PlayerCar[playerid][PlayerKey[playerid]][CarRotate]=Autospawns[autohaus][CarRotate];
    PlayerCar[playerid][PlayerKey[playerid]][CarNitro]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHyd]=0;
    print("D7");
    PlayerCar[playerid][PlayerKey[playerid]][CarWheel]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarAusp]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideL]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSideR]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarFB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRB]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarSpoiler]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarRoof]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarHood]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarVents]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarLamps]=0;
    PlayerCar[playerid][PlayerKey[playerid]][CarPJ]=-1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC1]=1;
    PlayerCar[playerid][PlayerKey[playerid]][CarC2]=1;
    print("D8");
    PlayerCar[playerid][PlayerKey[playerid]][CarPreis]=preis/2;
    PlayerCar[playerid][PlayerKey[playerid]][CarTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarMaxTank]=Kaufliste[Spectating[playerid][0]][Tank];
    PlayerCar[playerid][PlayerKey[playerid]][CarState]=0;
    print("D9");
    PlayerCar[playerid][PlayerKey[playerid]][CarId] = CreateVehicle(PlayerCar[playerid][PlayerKey[playerid]][CarModel],PlayerCar[playerid][PlayerKey[playerid]][CarPos_x],PlayerCar[playerid][PlayerKey[playerid]][CarPos_y],PlayerCar[playerid][PlayerKey[playerid]][CarPos_z],PlayerCar[playerid][PlayerKey[playerid]][CarRotate],PlayerCar[playerid][PlayerKey[playerid]][CarC1],PlayerCar[playerid][PlayerKey[playerid]][CarC2], -1);/*vehicle spawn*/
    Gas[PlayerCar[playerid][PlayerKey[playerid]][CarId]] = Kaufliste[Spectating[playerid][0]][Tank];
    gGas[PlayerCar[playerid][PlayerKey[playerid]][CarId]] = Kaufliste[Spectating[playerid][0]][Tank];
    SetVehicleParamsEx(PlayerCar[playerid][PlayerKey[playerid]][CarId], false, false, false, true, false, false, false);
    SetVehicleNumberPlate(PlayerCar[playerid][PlayerKey[playerid]][CarId], SpielerName(playerid));
    RemovePlayerFromVehicle(playerid);
    print("D10");
    FreezePlayer(playerid);
    print("D11");
    UnfreezePlayer(playerid);
    print("D12");
    new Float:x, Float: y, Float:z;
    GetVehiclePos(PlayerCar[playerid][PlayerKey[playerid]][CarId], x, y, z);
    SetPlayerCheckpoint(playerid, x,y,z, 5.0);
    PlayerHaveCar[playerid][PlayerKey[playerid]] = 1;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Das Fahrzeug steht am Ausgabe Punkt bereit.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mit /carhelp siehst du die Fahrzeug Befehle.");
    }
    else
    {
    SendClientMessage(playerid, ROT, "Du hast nicht genügend Geld dabei!");
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    UnfreezePlayer(playerid);
    return 1;
    }
    }
    else
    {
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, BLAU, "Auf diesem Schlüssel ist bereits ein Fahrzeug!");
    UnfreezePlayer(playerid);
    return 1;
    }
    }
    }
    if(!response)
    {
    FreezePlayer(playerid);
    RemovePlayerFromVehicle(playerid);
    UnfreezePlayer(playerid);
    return 1;
    }
    }





    bitte um hilfe


    mfg
    LordHit




    bitte um hilfe

    also ich habe ein autohaus system gemacht es soll nur 1 auto spawn und aufeinmal spawnen 10 inneinander ich zeige euch den code




    erschaff befehl
    if(strcmp(cmd,"/Unew",true)==0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < ADMLVL) return 1;
    {
    new model = 560;
    new farbe1 = 1;
    new farbe2 = 1;
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,a);
    SendClientMessage(playerid,BLAU,"Fraktionsfahrzeug wird erstellt!");
    CUC(model,x,y,z,a,farbe1,farbe2,playerid);
    SendClientMessage(playerid,BLAU,"Erfolgreich");
    }
    }
    return 1;
    }




    da wo das auto erstellt wird


    stock CUC(model,Float:ux,Float:uy,Float:uz,Float:ua,farbe1,farbe2,playerid)
    {
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new SDatei[64];
    for(new carid=1;carid<MAX_UCARS;carid++)
    {
    format(SDatei,50,"/Ucar/%d.txt",carid);
    if(!fexist(SDatei))
    {
    if(PlayerInfo[playerid][pDonateRank] >= 0)
    {



    if(PlayerInfo[playerid][carkey1] == 0)
    {
    PlayerInfo[playerid][carkey1] = carid;
    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);

    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);



    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey2] == 0)
    {
    PlayerInfo[playerid][carkey2] = carid;
    }
    else
    {
    if(PlayerInfo[playerid][carkey3] == 0)
    {
    PlayerInfo[playerid][carkey3] = carid;

    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey4] == 0)
    {
    PlayerInfo[playerid][carkey4] = carid;

    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey5] == 0)
    {
    PlayerInfo[playerid][carkey5] = carid;

    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][vipkey1] == 0)
    {
    PlayerInfo[playerid][vipkey1] = carid;

    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][vipkey2] == 0)
    {
    PlayerInfo[playerid][vipkey2] = carid;

    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][vipkey3] == 0)
    {
    PlayerInfo[playerid][vipkey3] = carid;



    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][vipkey4] == 0)
    {
    PlayerInfo[playerid][vipkey4] = carid;
    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);



    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][vipkey5] == 0)
    {
    PlayerInfo[playerid][vipkey5] = carid;
    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);






    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Das system ist alle daten schlüssel druch gegangen ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "auch diese Vip schlüssel.");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Es war kein freier platz mehr ");
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    else
    {
    if(PlayerInfo[playerid][carkey1] == 0)
    {
    PlayerInfo[playerid][carkey1] = carid;
    strmid(UCInfo[carid][user], sendername, 0, strlen(sendername), 255);
    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);



    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey2] == 0)
    {
    PlayerInfo[playerid][carkey2] = carid;
    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);




    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey3] == 0)
    {
    PlayerInfo[playerid][carkey3] = carid;



    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);



    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey4] == 0)
    {
    PlayerInfo[playerid][carkey4] = carid;



    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);

    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    if(PlayerInfo[playerid][carkey5] == 0)
    {
    PlayerInfo[playerid][carkey5] = carid;



    dini_Create(SDatei);
    dini_IntSet(SDatei,"Model",model);
    dini_FloatSet(SDatei,"X",ux);
    dini_FloatSet(SDatei,"Y",uy);
    dini_FloatSet(SDatei,"Z",uz);
    dini_FloatSet(SDatei,"A",ua);
    dini_IntSet(SDatei,"Farbe1",farbe1);
    dini_IntSet(SDatei,"Farbe2",farbe2);
    dini_IntSet(SDatei,"fahrschein",carid);



    Usercar[carid] = CreateVehicle(model,ux,uy,uz,ua,farbe1,farbe2,-1);




    UCInfo[carid][carvehid] = dini_Int(SDatei,"Model");
    UCInfo[carid][ucx] = dini_Float(SDatei,"X");
    UCInfo[carid][ucy] = dini_Float(SDatei,"Y");
    UCInfo[carid][ucz] = dini_Float(SDatei,"Z");
    UCInfo[carid][uca] = dini_Float(SDatei,"A");
    UCInfo[carid][fcc1] = dini_Int(SDatei,"Farbe1");
    UCInfo[carid][fcc2] = dini_Int(SDatei,"Farbe2");
    UCInfo[carid][fahrschein] = dini_Int(SDatei,"fahrschein");
    UCInfo[carid][open] = 0;
    UCInfo[carid][Opark] = 0;
    SetPlayerPos(playerid,ux,uy,uz+1);
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Das system ist alle daten schlüssel druch gegangen ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Es war kein freier platz mehr ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Tipp: mit Vip krigst du noch 5 zusätzliche schlüssel");
    }
    }
    }
    }
    }
    }
    }
    }



    könnt ihr mir helfen ?



    mfg
    LordHit

    kann man das auch mit enum machen?
    wenn müsste das ja so ausehen


    GetPlayerName(playerid, sendername, sizeof(sendername));
    strmid(UCInfo[carid][user], sendername, 0, strlen(sendername), 255);
    dini_Set(SDatei,"User",UCInfo[carid][user]);







    würde das so kalppen?

    erst mal für tür oder zu ist muss du ein auto system schreiben ob abgeschlossen ist oder nicht
    dan kommt noch die frage möchdes du es in textdraws oder in gametext haben?


    Console
    [20:10:59] [debug] Run time error 4: "Array index out of bounds"
    [20:10:59] [debug] Accessing element at negative index -400
    [20:10:59] [debug] AMX backtrace:
    [20:10:59] [debug] #0 0005a5e8 in public VehStateCheck () from gfl.amx
    [19:57:11] [debug] Run time error 4: "Array index out of bounds"
    [19:57:11] [debug] Accessing element at index 65535 past array upper bound 499
    [19:57:11] [debug] AMX backtrace:
    [19:57:11] [debug] #0 0001cf54 in public OnPlayerDeath (2, 65535, 255) from gfl.amx
    [19:57:11] [death] Jason_Belschner died 255





    public OnPlayerDeath(playerid, killerid, reason)
    {
    M_OnPlayerDeath(playerid,killerid,reason);
    new name[MAX_PLAYER_NAME];
    new string[256];
    new playercash;
    new victimteam;
    new Float:px,Float:py,Float:pz;
    new killerteam;
    InCargo[playerid] = 0; InLevi[playerid] = 0;
    if((AtRegestration[playerid] == 0 && PlayerPaintballing[playerid] == 0) && FirstSpawn[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid][0] = CreatePickup(1254,1, pX, pY, pZ);
    PlayerInfo[playerid][pTx] = pX;
    PlayerInfo[playerid][pTy] = pY;
    PlayerInfo[playerid][pTz] = pZ;
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wurdest schwer verletzt ins Krankenhaus gebracht!");
    // SendClientMessage(playerid,COLOR_LIGHTBLUE, "Möchtest du einen Arzt?(/needmedic)");
    if(GetPlayerInterior(playerid) == 0)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
    {
    // SendClientMessage(i,COLOR_LIGHTBLUE,"[Funk:]Eine Person wurde als schwer verletzt gemeldet!");
    // SendClientMessage(i,COLOR_LIGHTBLUE,"Achtung eine Person wurde als schwerverletzt gemeldet!");
    // SendClientMessage(i,COLOR_LIGHTBLUE,"Die Position wurde auf dem HUD markiert!(/rmarker zum löschen)");
    // SetPlayerCheckpoint(i,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz],5.0);
    }
    }
    }
    }
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }




    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    GetPlayerPos(playerid, px, py, pz);
    if(killerid != 255)
    if(reason == 38)
    {
    new kstring[128];
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
    ABroadCast(COLOR_YELLOW,string,1);
    printf("%s", kstring);
    }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(IsBlacklist[playerid]==1)
    {
    ClearBlack(playerid);
    IsBlacklist[playerid]=0;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    if(gTeam[killerid] != 2 && PlayerInfo[killerid][pMember] != 7) { WantedPoints[killerid] += 2; } //+ 2 wanted points
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pKills]--;
    }
    }
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
    {
    slice = 0;
    }
    if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
    {
    slice = 0;
    }
    if (playercash > 0)
    {
    GivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    GivePlayerMoney(killerid, slice);
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }




    public VehStateCheck()
    {
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
    {
    if(M_Bot[i][PAFK] == 0)
    {
    new veh = GetPlayerVehicleID(i);
    new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int;
    GetVehicleVelocity(veh, speed_x, speed_y, speed_z);
    final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667; // 136.666667 = kmph // 85.4166672= mph
    final_speed_int = floatround(final_speed,floatround_round);
    new kmh_anzahl = final_speed_int;
    new Float:health,vehicleid = GetPlayerVehicleID(i),Float:x,Float:y,Float:z;//,Float:distance.Float:value
    GetPlayerPos(i, x, y, z);
    GetVehicleHealth(vehicleid,health);



    new str1[200],str2[200],str21[200],str22[200],str23[200],str3[200],str4[200];



    TextDrawShowForPlayer(i, tank[i]);
    TextDrawShowForPlayer(i, kmh[i]);
    TextDrawShowForPlayer(i, Fahrzeugmodel[i]);
    TextDrawShowForPlayer(i, Fahrzeug[i]);



    TextDrawShowForPlayer(i, trennung[i]);
    TextDrawShowForPlayer(i, batterie[i]);
    TextDrawShowForPlayer(i, radio[i]);
    TextDrawShowForPlayer(i, zustand[i]);
    TextDrawShowForPlayer(i, Autostatus[i]);



    format(str1,sizeof(str1),"%s",VehicleName[GetVehicleModel(vehicleid)-400]);
    TextDrawSetString(Fahrzeug[i], str1);



    format(str2,sizeof(str2),"Km/h: %d",kmh_anzahl);
    TextDrawSetString(kmh[i], str2);
    switch(radiozustand[i])
    {
    case 0:
    {
    format(str21,sizeof(str21),"Radio: Aus");
    TextDrawSetString(radio[i], str21);
    }
    case 1:
    {
    format(str21,sizeof(str21),"Radio: Ein");
    TextDrawSetString(radio[i], str21);
    }
    }
    for(new v=0;v<MAX_CARS;v++)
    {
    if(vehicleid == Frakcar[v])
    {
    switch(FCInfo[v][open])
    {
    case 1:
    {
    format(str23,sizeof(str23),"Autostatus: Zu");
    TextDrawSetString(Autostatus[i], str23);
    }
    case 0:
    {
    format(str23,sizeof(str23),"Autostatus: Auf");
    TextDrawSetString(Autostatus[i], str23);
    }
    }
    }
    }
    format(str22,sizeof(str22),"Batterie: %d%",Bat[vehicleid],GetBatMax(GetVehicleModel(vehicleid)));
    TextDrawSetString(batterie[i], str22);





    format(str3,sizeof(str3),"Benzin: %d/%d", Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)));
    TextDrawSetString(tank[i], str3);



    format(str4,sizeof(str4),"Zustand: %.2f", health);
    TextDrawSetString(zustand[i], str4);
    format(str23,sizeof(str23),"Autostatus: Wartung");
    TextDrawSetString(Autostatus[i], str23);
    PCarPos[i][PCarX] = x;
    PCarPos[i][PCarY] = y;
    PCarPos[i][PCarZ] = z;
    }
    }
    else
    {
    TextDrawHideForPlayer(i, tank[i]);
    TextDrawHideForPlayer(i, kmh[i]);
    TextDrawHideForPlayer(i, Fahrzeugmodel[i]);
    TextDrawHideForPlayer(i,Fahrzeug[i]);
    TextDrawHideForPlayer(i, trennung[i]);
    TextDrawHideForPlayer(i, batterie[i]);
    TextDrawHideForPlayer(i, radio[i]);
    TextDrawHideForPlayer(i,zustand[i]);
    TextDrawHideForPlayer(i,Autostatus[i]);
    }
    }
    return 1;
    }



    was ist da fürn fehler?
    man stirbt auch ohne grunfd meinchmal?

    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

    das mit getname war schon vorher ist nur warning
    habe ich aber enfernt
    ne immer noch nicht bin im ts3 nbicht mehr afk hier die zeile


    compiler:
    Zeile (49704) : Erwartete Zeichen ")", aber gefunden "["
    Zeile (49704) : Ungültiger Befehl
    Zeile (49704) : Befehl hat keinen Sinn
    Zeile (49704) : Erwartete Zeichen ";", aber gefunden "]"
    Zeile (49704) : Zuviele Fehler in einer Zeile



    47804



    if(Frakcar[autoid][Paintjob] >= 0) //zeile 49704
    {
    ChangeVehiclePaintjob(FCInfo[autoid][carvehid],FCInfo[autoid][Paintjob]);
    // ChangeVehiclePaintjob(FCInfo[autoid][carvehid],FCInfo[autoid][Paintjob]);
    }
    danke das ihrt fasucht mir zu helfen