Beiträge von Tyazair

    Guten Tag,


    Ich habe Probleme mit meiner MD5_Hash verschlüsselung.


    D:\----\*****.pwn(19394) : error 017: undefined symbol "MD5_Hash"



    //Dies ist nur ein teil vom OnplayerRegister public.


    public OnPlayerRegister(playerid, password[])
    {
    StuffInfo[sNeuUser] += 1;
    if(IsPlayerConnected(playerid))
    {
    new string[128],
    playername[MAX_PLAYER_NAME];


    GetPlayerName(playerid, playername, sizeof(playername));


    format(string, sizeof(string), "%s", password);
    strmid(PlayerInfo[playerid][pKey], MD5_Hash(string), 0, strlen(string), 255); // Hier is der Fehler...
    // strmid(PlayerInfo[playerid][pKey], string, 0, strlen(string), 255);
    //PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash];
    //#if defined MySQLSpeicherung
    format(string, sizeof(string), "INSERT INTO `users` (`Name`, `Key`) VALUES ('%s', '%s')", playername, PlayerInfo[playerid][pKey]);
    self_mysql_query(string);
    format(string, sizeof(string), "UPDATE `users` SET `RegisterDatum`='%d' WHERE `Name`='%s'", Time(), playername);
    self_mysql_query(string);
    PlayerUpdate(playerid);


    Grüße,

    Guten Morgen,


    Ich habe ein fehler in der Skin Funktion.



    D:\***.pwn(2123) : error 052: multi-dimensional arrays must be fully initialized




    new SkinData[MAX_SKIN_DATA][e_SkinData] =
    {
    // Männlich, Zivilist
    {2,1,0}, {3,1,0}, {6,1,0}, {7,1,0}, {14,1,0}, {15,1,0}, {18,1,0}, {19,1,0},
    {20,1,0}, {21,1,0}, {22,1,0}, {23,1,0}, {24,1,0}, {25,1,0}, {26,1,0}, {29,1,0},
    {37,1,0}, {45,1,0}, {66,1,0}, {72,1,0}, {73,1,0}, {97,1,0}, {101,1,0}, {134,1,0},
    {137,1,0}, {142,1,0}, {180,1,0}, {210,1,0}, {217,1,0}, {220,1,0}, {230,1,0},
    {234,1,0}, {242,1,0}, {262,1,0}, {289,1,0},
    // Weiblich, Zivilist
    {9,2,0}, {10,2,0}, {11,2,0}, {39,2,0}, {41,2,0}, {54,2,0}, {55,2,0}, {69,2,0},
    {77,2,0}, {88,2,0}, {89,2,0}, {90,2,0}, {93,2,0}, {141,2,0}, {190,2,0}, {192,2,0},
    {199,2,0}, {211,2,0}, {243,2,0}, {251,2,0},
    // Männlich, LSPD
    {163,1,1}, {164,1,1}, {265,1,1}, {266,1,1}, {267,1,1}, {280,1,1},
    {281,1,1}, {282,1,1}, {283,1,1}, {288,1,1},
    // Männlich, FBI
    {165,1,10}, {166,1,10}, {240,1,10}, {286,1,10}, {294,1,10},
    // Weiblich, FBI
    {11,2,10}, {172,2,10}, {194,2,10}, {211,2,10},
    // Weiblich, LSPD
    {163,2,1}, {164,2,1}, {265,2,1}, {266,2,1}, {267,2,1}, {280,2,1},
    {281,2,1}, {282,2,1}, {283,2,1}, {288,2,1},
    // Männlich, FCM
    {111, 1, 2}, {112, 1, 2}, {113, 1, 2}, {124, 1, 2}, {125, 1, 2}, {126, 1, 2}, {127, 1, 2},
    // Weiblich, FCM
    {12, 2, 2},
    // Männlich, SAMD
    {274, 1, 3}, {275, 1, 3}, {276, 1, 3}, {70, 1, 3},
    // Weiblich, SAMD
    {211, 1, 3},
    // Männlich, GSF
    {105, 1, 4}, {106, 1, 4}, {107, 1, 4}, {270, 1, 4}, {271, 1, 4}, {269, 1, 4},
    // Weiblich, GSF
    {65, 2, 4},
    // Männlich, Hitman
    {2,1,5}, {3,1,5}, {6,1,5}, {7,1,5}, {14,1,5}, {15,1,5}, {18,1,5}, {19,1,5},
    {20,1,5}, {21,1,5}, {22,1,5}, {23,1,5}, {24,1,5}, {25,1,5}, {26,1,5}, {29,1,5},
    {37,1,5}, {45,1,5}, {66,1,5}, {72,1,5}, {73,1,5}, {97,1,5}, {101,1,5}, {134,1,5},
    {137,1,5}, {142,1,5}, {180,1,5}, {210,1,5}, {217,1,5}, {220,1,5}, {230,1,5},
    {234,1,5}, {242,1,5}, {262,1,5}, {289,1,5},
    // Weiblich, Hitman
    {9,2,5}, {10,2,5}, {11,2,5}, {39,2,5}, {41,2,5}, {54,2,5}, {55,2,5}, {69,2,5},
    {77,2,5}, {88,2,5}, {89,2,5}, {90,2,5}, {93,2,5}, {141,2,5}, {190,2,5}, {192,2,5},
    {199,2,5}, {211,2,5}, {243,2,5}, {251,2,5},
    // Männlich, OAMT
    {8, 1, 6}, {42, 1, 6}, {50, 1, 6}, {71, 1, 6},
    // Weiblich, OAMT
    {233, 2, 6},
    // Männlich, San News
    {60, 1, 7}, {170, 1, 7}, {188, 1, 7}, {227, 1, 7}, {240, 1, 7}, {250, 1, 7},
    // Weiblich, San News
    {56, 2, 7}, {226, 2, 7},
    //Männlich, Ballas
    {102, 1, 8}, {103, 1, 8}, {104, 1, 8}, {293, 1, 8},
    //Weiblich, Ballas
    {13, 2, 8},
    //Männlich, Yakuza
    {203 ,1, 9}, {204 ,1, 9}, {208 ,1, 9}, {186 ,1, 9},
    //Weiblich, Yakuza
    {224, 2, 9}, {225, 2,9}
    }; //Hier der fehler

    Guten Tag,


    Seit neusten habe ich löcher in der Map wo nix ist.
    Wenn man mit dem Auto rein fährt stürzt man ab durch den boden.
    Welche ist die Aktuelle Streamer Version?


    Grüße,

    @Tyazair tausch den Code durch meinen alten aus. Einfach machen.
    Dann schauen was in der Console steht (also irgendwas mit neon1: 2939 und neon2: 2399)
    Und dann bitte hier rein kopieren

    Hier die Sachen aus der Konsole



    [22:03:19] *** CreateDynamic3DTextLabel: Expecting 13 parameter(s), but found 15
    [22:03:19] neon1: 133
    [22:03:19] neon2: 134

    auf der anderen Seite wäre dann die Frage ob du bei deinen Objekten nur "CreateObject" benutzt?
    Oder du auch "CreateDynamicObject" benutzt?

    Hatte beides benutzt bei unterschiedlichen farben zum testen, mit dem Printf setze ich mich morgen mal dran.


    Unter was muss der Printf gesetzt werden?

    new neon1 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon1: %d", neon1);
    new neon2 = CreateObject(18648,0,0,0,0,0,0,283);
    printf("neon2: %d", neon2);



    Grüße,

    stock VehicleTuning(playerid, slot){ if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID])) { GetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor])KillTimer(Vehicle[PrivateVehicle[playerid][slot][vehID]][VehicleTimer]); Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehLicht] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehHaube] = false; Vehicle[PrivateVehicle[playerid][slot][vehID]][vehKRaum] = false; new playerName[MAX_PLAYER_NAME+1], nPlate[32], cutName[24+1]; GetPlayerName(playerid, playerName, sizeof(playerName)); strmid(cutName, playerName, 0, 1, sizeof(cutName)); format(nPlate, sizeof(nPlate), "{B22222}SA %s %d", cutName, PrivateVehicle[playerid][slot][vehID]); SetVehicleNumberPlate(PrivateVehicle[playerid][slot][vehID], nPlate); LinkVehicleToInterior(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehInterior]); SetVehicleVirtualWorld(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWorld]); if(PrivateVehicle[playerid][slot][vehPaintjob] >= 0)ChangeVehiclePaintjob(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPaintjob]); if(PrivateVehicle[playerid][slot][vehColor1] >= 0 || PrivateVehicle[playerid][slot][vehColor2] >= 0) ChangeVehicleColor(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehColor1], PrivateVehicle[playerid][slot][vehColor2]); if(PrivateVehicle[playerid][slot][vehSpoiler] >= 1000){ AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSpoiler]); } if(PrivateVehicle[playerid][slot][vehHood] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHood]); } if(PrivateVehicle[playerid][slot][vehRoof] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRoof]); } if(PrivateVehicle[playerid][slot][vehSideskirt] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSideskirt]); } if(PrivateVehicle[playerid][slot][vehLamps] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehLamps]); } if(PrivateVehicle[playerid][slot][vehNitro] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehNitro]); } if(PrivateVehicle[playerid][slot][vehExhaust] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehExhaust]); } if(PrivateVehicle[playerid][slot][vehWheels] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWheels]); } if(PrivateVehicle[playerid][slot][vehStereo] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehStereo]); } if(PrivateVehicle[playerid][slot][vehHydraulics] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHydraulics]); } if(PrivateVehicle[playerid][slot][vehFrontBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehFrontBumper]); } if(PrivateVehicle[playerid][slot][vehRearBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRearBumper]); } if(PrivateVehicle[playerid][slot][vehVentRight] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentRight]); } if(PrivateVehicle[playerid][slot][vehVentLeft] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentLeft]); } switch(PrivateVehicle[playerid][slot][vehNeonID]) { case 1: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 2: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 3: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß case 4: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 5: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 6: {PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot } SetVehiclePos(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosX], PrivateVehicle[playerid][slot][vehPosY], PrivateVehicle[playerid][slot][vehPosZ]); SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosA]); } return 1;}


    //Edit fail

    Neon wird nicht angezeigt.

    Die AttachDynamicObjectToVehicle waren noch mitten im Switch, das sollte der Grund für die Fehler sein.


    stock fVehicleTuning(fV){ new nPlate[32]; if(IsValidVehicle(fVehicle[fV][vehID])) { GetVehicleParamsEx(fVehicle[fV][vehID], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(fVehicle[fV][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); if(Vehicle[fVehicle[fV][vehID]][vehMotor])KillTimer(Vehicle[fVehicle[fV][vehID]][VehicleTimer]); Vehicle[fVehicle[fV][vehID]][vehMotor] = false; Vehicle[fVehicle[fV][vehID]][vehLicht] = false; Vehicle[fVehicle[fV][vehID]][vehHaube] = false; Vehicle[fVehicle[fV][vehID]][vehKRaum] = false; format(nPlate, sizeof(nPlate), "{B22222}%s %d", GetFraktionNumberPlate(fVehicle[fV][vehFraktion]), fVehicle[fV][vehID]); SetVehicleNumberPlate(fVehicle[fV][vehID], nPlate); LinkVehicleToInterior(fVehicle[fV][vehID], fVehicle[fV][vehInterior]); SetVehicleVirtualWorld(fVehicle[fV][vehID], fVehicle[fV][vehWorld]); if(fVehicle[fV][vehPaintjob] >= 0)ChangeVehiclePaintjob(fVehicle[fV][vehID], fVehicle[fV][vehPaintjob]); if(fVehicle[fV][vehColor1] >= 0 || fVehicle[fV][vehColor2] >= 0)ChangeVehicleColor(fVehicle[fV][vehID], fVehicle[fV][vehColor1], fVehicle[fV][vehColor2]); if(fVehicle[fV][vehSpoiler] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSpoiler]); if(fVehicle[fV][vehHood] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHood]); if(fVehicle[fV][vehRoof] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRoof]); if(fVehicle[fV][vehSideskirt] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSideskirt]); if(fVehicle[fV][vehLamps] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehLamps]); if(fVehicle[fV][vehNitro] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehNitro]); if(fVehicle[fV][vehExhaust] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehExhaust]); if(fVehicle[fV][vehWheels] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehWheels]); if(fVehicle[fV][vehStereo] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehStereo]); if(fVehicle[fV][vehHydraulics] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHydraulics]); if(fVehicle[fV][vehFrontBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehFrontBumper]); if(fVehicle[fV][vehRearBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRearBumper]); if(fVehicle[fV][vehVentRight] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentRight]); if(fVehicle[fV][vehVentLeft] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentLeft]); switch(fVehicle[fV][vehNeonID]) { case 1: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 2: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 3: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß case 4: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 5: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 6: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot } if(fVehicle[fV][vehSiren] == 1) { if(fVehicle[fV][vehFraktion] == 3) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000); } } else if(fVehicle[fV][vehFraktion] == 6) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000); } } else if(fVehicle[fV][vehFraktion] == 1) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(19620, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren2] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren3] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren4] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren5] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren2], fVehicle[fV][vehID], 0.73560, 2.59780, -0.13790, 0.00000, 0.00000, 178.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren3], fVehicle[fV][vehID], 0.73560, 2.59780, -0.24890, 0.00000, 0.00000, 178.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren4], fVehicle[fV][vehID], -0.72440, 2.59780, -0.13990, 4.00000, 0.00000, 185.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren5], fVehicle[fV][vehID], -0.72440, 2.59780, -0.25090, 4.00000, 0.00000, 185.00000); } } } SetVehiclePos(fVehicle[fV][vehID], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ]); SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", fVehicle[fV][vehID], fVehicle[fV][vehPosA]); } return 1;}


    Wie behebe ich das jetzt bei denn Privat cars?
    Der stock ist hier.



    stock VehicleTuning(playerid, slot)
    {
    if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID]))
    {
    GetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor])KillTimer(Vehicle[PrivateVehicle[playerid][slot][vehID]][VehicleTimer]);
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehLicht] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehHaube] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehKRaum] = false;
    new playerName[MAX_PLAYER_NAME+1], nPlate[32], cutName[24+1];
    GetPlayerName(playerid, playerName, sizeof(playerName));
    strmid(cutName, playerName, 0, 1, sizeof(cutName));
    format(nPlate, sizeof(nPlate), "{B22222}SA %s %d", cutName, PrivateVehicle[playerid][slot][vehID]);
    SetVehicleNumberPlate(PrivateVehicle[playerid][slot][vehID], nPlate);
    LinkVehicleToInterior(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehInterior]);
    SetVehicleVirtualWorld(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWorld]);
    if(PrivateVehicle[playerid][slot][vehPaintjob] >= 0)ChangeVehiclePaintjob(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPaintjob]);
    if(PrivateVehicle[playerid][slot][vehColor1] >= 0 || PrivateVehicle[playerid][slot][vehColor2] >= 0) ChangeVehicleColor(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehColor1], PrivateVehicle[playerid][slot][vehColor2]);
    if(PrivateVehicle[playerid][slot][vehSpoiler] >= 1000){ AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSpoiler]); }
    if(PrivateVehicle[playerid][slot][vehHood] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHood]); }
    if(PrivateVehicle[playerid][slot][vehRoof] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRoof]); }
    if(PrivateVehicle[playerid][slot][vehSideskirt] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSideskirt]); }
    if(PrivateVehicle[playerid][slot][vehLamps] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehLamps]); }
    if(PrivateVehicle[playerid][slot][vehNitro] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehNitro]); }
    if(PrivateVehicle[playerid][slot][vehExhaust] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehExhaust]); }
    if(PrivateVehicle[playerid][slot][vehWheels] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWheels]); }
    if(PrivateVehicle[playerid][slot][vehStereo] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehStereo]); }
    if(PrivateVehicle[playerid][slot][vehHydraulics] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHydraulics]); }
    if(PrivateVehicle[playerid][slot][vehFrontBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehFrontBumper]); }
    if(PrivateVehicle[playerid][slot][vehRearBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRearBumper]); }
    if(PrivateVehicle[playerid][slot][vehVentRight] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentRight]); }
    if(PrivateVehicle[playerid][slot][vehVentLeft] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentLeft]); }
    switch(PrivateVehicle[playerid][slot][vehNeonID])
    {
    case 1: // Blau
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 2: // Grün
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 3: // Weiß
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 4: // Pink
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 5: // Gelb
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 6: // Rot
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    }
    SetVehiclePos(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosX], PrivateVehicle[playerid][slot][vehPosY], PrivateVehicle[playerid][slot][vehPosZ]);
    SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosA]);
    }
    return 1;
    }

    bei dir ist die Fahrzeug ID Variable nicht vehicleid sondern fV.


    stock fVehicleTuning(fV){ new nPlate[32]; if(IsValidVehicle(fVehicle[fV][vehID])) { GetVehicleParamsEx(fVehicle[fV][vehID], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(fVehicle[fV][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); if(Vehicle[fVehicle[fV][vehID]][vehMotor])KillTimer(Vehicle[fVehicle[fV][vehID]][VehicleTimer]); Vehicle[fVehicle[fV][vehID]][vehMotor] = false; Vehicle[fVehicle[fV][vehID]][vehLicht] = false; Vehicle[fVehicle[fV][vehID]][vehHaube] = false; Vehicle[fVehicle[fV][vehID]][vehKRaum] = false; format(nPlate, sizeof(nPlate), "{B22222}%s %d", GetFraktionNumberPlate(fVehicle[fV][vehFraktion]), fVehicle[fV][vehID]); SetVehicleNumberPlate(fVehicle[fV][vehID], nPlate); LinkVehicleToInterior(fVehicle[fV][vehID], fVehicle[fV][vehInterior]); SetVehicleVirtualWorld(fVehicle[fV][vehID], fVehicle[fV][vehWorld]); if(fVehicle[fV][vehPaintjob] >= 0)ChangeVehiclePaintjob(fVehicle[fV][vehID], fVehicle[fV][vehPaintjob]); if(fVehicle[fV][vehColor1] >= 0 || fVehicle[fV][vehColor2] >= 0)ChangeVehicleColor(fVehicle[fV][vehID], fVehicle[fV][vehColor1], fVehicle[fV][vehColor2]); if(fVehicle[fV][vehSpoiler] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSpoiler]); if(fVehicle[fV][vehHood] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHood]); if(fVehicle[fV][vehRoof] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRoof]); if(fVehicle[fV][vehSideskirt] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSideskirt]); if(fVehicle[fV][vehLamps] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehLamps]); if(fVehicle[fV][vehNitro] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehNitro]); if(fVehicle[fV][vehExhaust] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehExhaust]); if(fVehicle[fV][vehWheels] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehWheels]); if(fVehicle[fV][vehStereo] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehStereo]); if(fVehicle[fV][vehHydraulics] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHydraulics]); if(fVehicle[fV][vehFrontBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehFrontBumper]); if(fVehicle[fV][vehRearBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRearBumper]); if(fVehicle[fV][vehVentRight] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentRight]); if(fVehicle[fV][vehVentLeft] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentLeft]); switch(fVehicle[fV][vehNeonID]) { case 1: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot case 2: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau case 3: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün case 4: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb case 5: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink case 6: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0); } if(fVehicle[fV][vehSiren] == 1) { if(fVehicle[fV][vehFraktion] == 3) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000); } } else if(fVehicle[fV][vehFraktion] == 6) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000); } } else if(fVehicle[fV][vehFraktion] == 1) { if(GetVehicleModel(fVehicle[fV][vehID]) == 560) { fVehicle[fV][vehSiren1] = CreateDynamicObject(19620, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren2] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren3] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren4] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehSiren5] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren2], fVehicle[fV][vehID], 0.73560, 2.59780, -0.13790, 0.00000, 0.00000, 178.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren3], fVehicle[fV][vehID], 0.73560, 2.59780, -0.24890, 0.00000, 0.00000, 178.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren4], fVehicle[fV][vehID], -0.72440, 2.59780, -0.13990, 4.00000, 0.00000, 185.00000); AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren5], fVehicle[fV][vehID], -0.72440, 2.59780, -0.25090, 4.00000, 0.00000, 185.00000); } } } SetVehiclePos(fVehicle[fV][vehID], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ]); SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", fVehicle[fV][vehID], fVehicle[fV][vehPosA]); } return 1;}



    D:\****.pwn(28324) : error 002: only a single statement (or expression) can follow each "case"
    D:\****.pwn(28324) : warning 215: expression has no effect
    D:\****.pwn(28327) : warning 217: loose indentation
    D:\****.pwn(28365) : error 010: invalid function or declaration



    switch(fVehicle[fV][vehNeonID])
    {
    case 1: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot
    case 2: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau
    case 3: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün
    case 4: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb
    case 5: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink
    case 6: {fVehicle[fV][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[fV][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fV, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); //und Hier
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fV, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);// UND HIER
    }
    if(fVehicle[fV][vehSiren] == 1)
    {
    if(fVehicle[fV][vehFraktion] == 3)
    {
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560)
    {
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 6)
    {
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560)
    {
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 1)
    {
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560)
    {
    fVehicle[fV][vehSiren1] = CreateDynamicObject(19620, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren2] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren3] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren4] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren5] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren2], fVehicle[fV][vehID], 0.73560, 2.59780, -0.13790, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren3], fVehicle[fV][vehID], 0.73560, 2.59780, -0.24890, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren4], fVehicle[fV][vehID], -0.72440, 2.59780, -0.13990, 4.00000, 0.00000, 185.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren5], fVehicle[fV][vehID], -0.72440, 2.59780, -0.25090, 4.00000, 0.00000, 185.00000);
    }
    }
    }
    SetVehiclePos(fVehicle[fV][vehID], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ]);
    SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", fVehicle[fV][vehID], fVehicle[fV][vehPosA]);
    }
    return 1; //Fehler hier
    }

    Nein ich meine wo du die Neonröhren erstellen lässt und am Auto anbringst.


    Diese Funktion also der Ganze Befehl wenn du es beim Motorstart hast oder die Funktion wenn du es mit dem Fahrzeug laden lässt also das ganze wo du die Errors hast.


    //Neon anbringen (Optional beim Motorstart)switch(fVehicle[vehicleid][vehNeonID]){ case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß}

    Hier der Stock..



    stock fVehicleTuning(fV)
    {
    if(IsValidVehicle(fVehicle[fV][vehID]))
    {
    GetVehicleParamsEx(fVehicle[fV][vehID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(fVehicle[fV][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    if(Vehicle[fVehicle[fV][vehID]][vehMotor])KillTimer(Vehicle[fVehicle[fV][vehID]][VehicleTimer]);
    Vehicle[fVehicle[fV][vehID]][vehMotor] = false;
    Vehicle[fVehicle[fV][vehID]][vehLicht] = false;
    Vehicle[fVehicle[fV][vehID]][vehHaube] = false;
    Vehicle[fVehicle[fV][vehID]][vehKRaum] = false;
    new nPlate[32];
    format(nPlate, sizeof(nPlate), "{B22222}%s %d", GetFraktionNumberPlate(fVehicle[fV][vehFraktion]), fVehicle[fV][vehID]);
    SetVehicleNumberPlate(fVehicle[fV][vehID], nPlate);
    LinkVehicleToInterior(fVehicle[fV][vehID], fVehicle[fV][vehInterior]);
    SetVehicleVirtualWorld(fVehicle[fV][vehID], fVehicle[fV][vehWorld]);
    if(fVehicle[fV][vehPaintjob] >= 0)ChangeVehiclePaintjob(fVehicle[fV][vehID], fVehicle[fV][vehPaintjob]);
    if(fVehicle[fV][vehColor1] >= 0 || fVehicle[fV][vehColor2] >= 0)ChangeVehicleColor(fVehicle[fV][vehID], fVehicle[fV][vehColor1], fVehicle[fV][vehColor2]);
    if(fVehicle[fV][vehSpoiler] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSpoiler]);
    if(fVehicle[fV][vehHood] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHood]);
    if(fVehicle[fV][vehRoof] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRoof]);
    if(fVehicle[fV][vehSideskirt] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSideskirt]);
    if(fVehicle[fV][vehLamps] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehLamps]);
    if(fVehicle[fV][vehNitro] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehNitro]);
    if(fVehicle[fV][vehExhaust] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehExhaust]);
    if(fVehicle[fV][vehWheels] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehWheels]);
    if(fVehicle[fV][vehStereo] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehStereo]);
    if(fVehicle[fV][vehHydraulics] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHydraulics]);
    if(fVehicle[fV][vehFrontBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehFrontBumper]);
    if(fVehicle[fV][vehRearBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRearBumper]);
    if(fVehicle[fV][vehVentRight] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentRight]);
    if(fVehicle[fV][vehVentLeft] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentLeft]);
    /*switch(fVehicle[fV][vehNeonID])
    {
    case 1: // Blau
    {
    //fVehicle[fV][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    //fVehicle[fV][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    //AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    //AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    //SetPVarInt(playerid, "neon", 1);// Wofür steht das wenn ich fragen darf??
    SetPVarInt(playerid, "vehNeon1", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "vehNeon2", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "vehNeon1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "vehNeon2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~b~ Blaues ~w~ Unterbodenbeleuchtung wurde zu deinem Fahrzeug hinzugefügt.",3500,5);
    }
    case 2: // Grün
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 3: // Weiß
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 4: // Pink
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 5: // Gelb
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 6: // Rot
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    }*/
    switch(fVehicle[vehicleid][vehNeonID]) //Fehler fangen hier an
    {
    case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot
    case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau
    case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün
    case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb
    case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink
    case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);
    }
    }
    if(fVehicle[fV][vehSiren] == 1)
    {
    if(fVehicle[fV][vehFraktion] == 3){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 6){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 1){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(19620, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren2] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren3] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren4] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren5] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren2], fVehicle[fV][vehID], 0.73560, 2.59780, -0.13790, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren3], fVehicle[fV][vehID], 0.73560, 2.59780, -0.24890, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren4], fVehicle[fV][vehID], -0.72440, 2.59780, -0.13990, 4.00000, 0.00000, 185.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren5], fVehicle[fV][vehID], -0.72440, 2.59780, -0.25090, 4.00000, 0.00000, 185.00000);
    }
    }
    }
    SetVehiclePos(fVehicle[fV][vehID], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ]);
    SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", fVehicle[fV][vehID], fVehicle[fV][vehPosA]);
    }
    return 1;
    }

    Also so sollte es gehen wo lässt du das Neon erstellen beim Fahrzeug erstellen oder beim Motorstart, je nach dem Zeig mal den Befehl oder die Funktion.


    //Neon anbringen (Optional beim Motorstart)switch(fVehicle[vehicleid][vehNeonID]){ case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß}//Wenn das Fahrzeug neu Spawntpublic OnVehicleSpawn(vehicleid){ if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);} if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);} return 1;}//Das Fahrzeug löschenstock DestroyVehicleEx(vehicleid){ if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);} if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);} DestroyVehicle(vehicleid); return 1;}

    Das?



    case DIALOG_NEON:
    {
    if(response)
    {
    switch(listitem)
    {
    case 0: //Blaues Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 1, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    case 1: //Grünes Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 2, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    case 2: //Weißes Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 3, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    case 3: //Pinkes Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 4, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    case 4: //Gelbes Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 5, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    case 5: //Rotes Neon
    {
    if(GetPlayerVehicleCount(playerid) >= MAX_PLAYER_VEHICLES)
    {
    SendClientMessage(playerid, COLOR_GREY, "Deine Carkeys sind derzeit voll.");
    return 1;
    }
    CreatePlayerVehicle(playerid, GutscheinCar[playerid],2803.2385,-2378.8162,13.3352,179.1268, COLOR_HEX_DARKBLUE"- TÜV -", 1000, 6, 1, 1);
    SetPlayerCheckpointEx(playerid, 2803.2385,-2378.8162,13.3352, 5.0, CP_FINDCAR, INVALID_CHECKPOINT_TYPE);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein neues Fahrzeug wurde auf der Karte markiert.");
    ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Gutschein eingelöst", ""COLOR_HEX_WHITE"Du hast deinen Gutschein erfolgreich eingelöst.\nWert: Fahrzeug mit Unterbodenbeleuchtung\n\nDieser Gutschein wurde nun unbrauchbar gemacht, du kannst ihn nicht erneut einlösen.","Schließen", "");
    GutscheinCar[playerid] = -1;
    for(new i=1;i<MAX_GUTSCHEINE;i++)
    {
    if(Gutschein[i][gErstellt] != 0)
    {
    Gutschein[GutscheinID[playerid]][gEingeloest] = 1;
    format(Gutschein[GutscheinID[playerid]][gEingeloestVon], 16, "%s", GetName(playerid));
    }
    }
    GutscheinID[playerid] = -1;
    }
    }
    }
    }
    case DIALOG_NEONCARS:
    {
    if(response)
    {
    switch(listitem)
    {
    case 0: //Buffalo
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 402;
    }
    case 1: //Infernus
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 411;
    }
    case 2: //Voodoo
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 412;
    }
    case 3: //Cheetah
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 415;
    }
    case 4: //Esperanto
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 419;
    }
    case 5: //Banshee
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 429;
    }
    case 6: //Turismo
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 451;
    }
    case 7: //Sabre
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 475;
    }
    case 8: //Comet
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 480;
    }
    case 9: //Super-GT
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 506;
    }
    case 10: //Blade
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 536;
    }
    case 11: //Jester
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 559;
    }
    case 12: //Sultan
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 560;
    }
    case 13: //Elegy
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 562;
    }
    case 14: //Savanna
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 567;
    }
    case 15: //Phoenix
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 603;
    }
    case 16: //ZR-350
    {
    ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon auswählen", "Blaues Neon\nGrünes Neon\nWeißes Neon\nPinkes Neon\nGelbes Neon\nRotes Neon", "Auswählen", "Abbrechen");
    GutscheinCar[playerid] = 477;
    }
    }
    }
    }

    Wenn du es direkt im Switch willst mach es so.


    switch(fVehicle[vehicleid][vehNeonID]){ case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Rot case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Blau case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Grün case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Gelb case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Pink case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);} //Weiß}


    D:\***.pwn(28280) : error 017: undefined symbol "vehicleid"
    D:\***.pwn(28281) : error 002: only a single statement (or expression) can follow each "case"
    D:\***.pwn(28281) : error 017: undefined symbol "vehicleid"
    D:\***.pwn(28281) : warning 215: expression has no effect
    D:\***.pwn(28282) : error 017: undefined symbol "vehicleid"
    D:\***.pwn(28285) : error 010: invalid function or declaration
    D:\***.pwn(28287) : error 010: invalid function or declaration


    Bekomme diesen fehler. P.S. füg mal bitte deine Sachen von oben erneut ein.

    Ich habe einfach mal mein Script deinen Variablen angepasst, ich empfehle dir das Neon beim Motorstart anzubringen.


    //Neon anbringen (Optional beim Motorstart)switch(fVehicle[vehicleid][vehNeonID]){ case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß}AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0);AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);//Wenn das Fahrzeug neu Spawntpublic OnVehicleSpawn(vehicleid){ if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);} if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);} return 1;}//Das Fahrzeug löschenstock DestroyVehicleEx(vehicleid){ if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);} if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);} DestroyVehicle(vehicleid); return 1;}

    Geht das auch so?


    bei der ersten PWN darunter machen oder bei der zweiten mit einbringen?



    switch(fVehicle[vehicleid][vehNeonID])
    {
    case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot
    case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau
    case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün
    case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb
    case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink
    case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß
    }
    }
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);

    Das die AttachDynamicObjectToVehicle mit in dem switch sind? Beispiel unten!



    switch(fVehicle[vehicleid][vehNeonID])
    {
    case 1: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0);} //Rot
    case 2: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0);} //Blau
    case 3: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0);} //Grün
    case 4: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0);} //Gelb
    case 5: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0);} //Pink
    case 6: {fVehicle[vehicleid][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0); fVehicle[vehicleid][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0);} //Weiß
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon1], vehicleid, -0.8, 0.0, -0.50, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[vehicleid][vehNeon2], vehicleid, 0.8, 0.0, -0.50, 0.0, 0.0, 0.0);
    }
    }

    Das ist nur deklariert solltest du das Neon wieder entfernen wollen.Dann kann man das so entfernen:
    DeletePVar(playerid, "neon");DestroyObject(GetPVarInt(playerid, "blue1"));


    Aber falls du diese Funktion nicht hast, kannst du das auch entfernen^^
    btw. so wie du es geschrieben hast sollte es Funktionieren.

    Hier hast doch nochmal stock vom fVehicleTuning(fV und nochmal den stock VehicleTuning



    stock fVehicleTuning(fV)
    {
    if(IsValidVehicle(fVehicle[fV][vehID]))
    {
    GetVehicleParamsEx(fVehicle[fV][vehID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(fVehicle[fV][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    if(Vehicle[fVehicle[fV][vehID]][vehMotor])KillTimer(Vehicle[fVehicle[fV][vehID]][VehicleTimer]);
    Vehicle[fVehicle[fV][vehID]][vehMotor] = false;
    Vehicle[fVehicle[fV][vehID]][vehLicht] = false;
    Vehicle[fVehicle[fV][vehID]][vehHaube] = false;
    Vehicle[fVehicle[fV][vehID]][vehKRaum] = false;
    new nPlate[32];
    format(nPlate, sizeof(nPlate), "{B22222}%s %d", GetFraktionNumberPlate(fVehicle[fV][vehFraktion]), fVehicle[fV][vehID]);
    SetVehicleNumberPlate(fVehicle[fV][vehID], nPlate);
    LinkVehicleToInterior(fVehicle[fV][vehID], fVehicle[fV][vehInterior]);
    SetVehicleVirtualWorld(fVehicle[fV][vehID], fVehicle[fV][vehWorld]);
    if(fVehicle[fV][vehPaintjob] >= 0)ChangeVehiclePaintjob(fVehicle[fV][vehID], fVehicle[fV][vehPaintjob]);
    if(fVehicle[fV][vehColor1] >= 0 || fVehicle[fV][vehColor2] >= 0)ChangeVehicleColor(fVehicle[fV][vehID], fVehicle[fV][vehColor1], fVehicle[fV][vehColor2]);
    if(fVehicle[fV][vehSpoiler] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSpoiler]);
    if(fVehicle[fV][vehHood] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHood]);
    if(fVehicle[fV][vehRoof] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRoof]);
    if(fVehicle[fV][vehSideskirt] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehSideskirt]);
    if(fVehicle[fV][vehLamps] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehLamps]);
    if(fVehicle[fV][vehNitro] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehNitro]);
    if(fVehicle[fV][vehExhaust] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehExhaust]);
    if(fVehicle[fV][vehWheels] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehWheels]);
    if(fVehicle[fV][vehStereo] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehStereo]);
    if(fVehicle[fV][vehHydraulics] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehHydraulics]);
    if(fVehicle[fV][vehFrontBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehFrontBumper]);
    if(fVehicle[fV][vehRearBumper] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehRearBumper]);
    if(fVehicle[fV][vehVentRight] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentRight]);
    if(fVehicle[fV][vehVentLeft] >= 1000)AddVehicleComponent(fVehicle[fV][vehID], fVehicle[fV][vehVentLeft]);
    switch(fVehicle[fV][vehNeonID])
    {
    case 1: // Blau
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 2: // Grün
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 3: // Weiß
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 4: // Pink
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 5: // Gelb
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 6: // Rot
    {
    fVehicle[fV][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon1], fVehicle[fV][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehNeon2], fVehicle[fV][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    }
    if(fVehicle[fV][vehSiren] == 1)
    {
    if(fVehicle[fV][vehFraktion] == 3){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 6){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(11701, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
    }
    }
    else if(fVehicle[fV][vehFraktion] == 1){
    if(GetVehicleModel(fVehicle[fV][vehID]) == 560){
    fVehicle[fV][vehSiren1] = CreateDynamicObject(19620, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren2] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren3] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren4] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    fVehicle[fV][vehSiren5] = CreateDynamicObject(19797, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren1], fVehicle[fV][vehID], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren2], fVehicle[fV][vehID], 0.73560, 2.59780, -0.13790, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren3], fVehicle[fV][vehID], 0.73560, 2.59780, -0.24890, 0.00000, 0.00000, 178.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren4], fVehicle[fV][vehID], -0.72440, 2.59780, -0.13990, 4.00000, 0.00000, 185.00000);
    AttachDynamicObjectToVehicle(fVehicle[fV][vehSiren5], fVehicle[fV][vehID], -0.72440, 2.59780, -0.25090, 4.00000, 0.00000, 185.00000);
    }
    }
    }
    SetVehiclePos(fVehicle[fV][vehID], fVehicle[fV][vehPosX], fVehicle[fV][vehPosY], fVehicle[fV][vehPosZ]);
    SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", fVehicle[fV][vehID], fVehicle[fV][vehPosA]);
    }
    return 1;
    }


    stock VehicleTuning(playerid, slot)
    {
    if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID]))
    {
    GetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(PrivateVehicle[playerid][slot][vehID], VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor])KillTimer(Vehicle[PrivateVehicle[playerid][slot][vehID]][VehicleTimer]);
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehMotor] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehLicht] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehHaube] = false;
    Vehicle[PrivateVehicle[playerid][slot][vehID]][vehKRaum] = false;
    new playerName[MAX_PLAYER_NAME+1], nPlate[32], cutName[24+1];
    GetPlayerName(playerid, playerName, sizeof(playerName));
    strmid(cutName, playerName, 0, 1, sizeof(cutName));
    format(nPlate, sizeof(nPlate), "{B22222}SA %s %d", cutName, PrivateVehicle[playerid][slot][vehID]);
    SetVehicleNumberPlate(PrivateVehicle[playerid][slot][vehID], nPlate);
    LinkVehicleToInterior(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehInterior]);
    SetVehicleVirtualWorld(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWorld]);
    if(PrivateVehicle[playerid][slot][vehPaintjob] >= 0)ChangeVehiclePaintjob(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPaintjob]);
    if(PrivateVehicle[playerid][slot][vehColor1] >= 0 || PrivateVehicle[playerid][slot][vehColor2] >= 0) ChangeVehicleColor(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehColor1], PrivateVehicle[playerid][slot][vehColor2]);
    if(PrivateVehicle[playerid][slot][vehSpoiler] >= 1000){ AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSpoiler]); }
    if(PrivateVehicle[playerid][slot][vehHood] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHood]); }
    if(PrivateVehicle[playerid][slot][vehRoof] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRoof]); }
    if(PrivateVehicle[playerid][slot][vehSideskirt] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehSideskirt]); }
    if(PrivateVehicle[playerid][slot][vehLamps] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehLamps]); }
    if(PrivateVehicle[playerid][slot][vehNitro] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehNitro]); }
    if(PrivateVehicle[playerid][slot][vehExhaust] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehExhaust]); }
    if(PrivateVehicle[playerid][slot][vehWheels] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehWheels]); }
    if(PrivateVehicle[playerid][slot][vehStereo] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehStereo]); }
    if(PrivateVehicle[playerid][slot][vehHydraulics] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehHydraulics]); }
    if(PrivateVehicle[playerid][slot][vehFrontBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehFrontBumper]); }
    if(PrivateVehicle[playerid][slot][vehRearBumper] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehRearBumper]); }
    if(PrivateVehicle[playerid][slot][vehVentRight] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentRight]); }
    if(PrivateVehicle[playerid][slot][vehVentLeft] >= 1000) { AddVehicleComponent(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehVentLeft]); }
    switch(PrivateVehicle[playerid][slot][vehNeonID])
    {
    case 1: // Blau
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 2: // Grün
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 3: // Weiß
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 4: // Pink
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 5: // Gelb
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    case 6: // Rot
    {
    PrivateVehicle[playerid][slot][vehNeon1] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    PrivateVehicle[playerid][slot][vehNeon2] = CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0, 0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon1], PrivateVehicle[playerid][slot][vehID], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(PrivateVehicle[playerid][slot][vehNeon2], PrivateVehicle[playerid][slot][vehID], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    }
    SetVehiclePos(PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosX], PrivateVehicle[playerid][slot][vehPosY], PrivateVehicle[playerid][slot][vehPosZ]);
    SetTimerEx("SetVehicleZAngle", 5000, 0, "dd", PrivateVehicle[playerid][slot][vehID], PrivateVehicle[playerid][slot][vehPosA]);
    }
    return 1;
    }

    Villt könntest mir ja ein beispiel schicken^^