Neon system Funktioniert nicht

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

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Morgen.


    Und zwar wird mein Neon am Auto nicht angezeigt.



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


    Bitte helfen sie mir.


    Grüße,

  • Guten Morgen :)


    Ich hab mal eben einen Auszug aus meinem System kopiert:

    case 1:
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "blue", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    GameTextForPlayer(playerid, "~b~ Blaues ~w~ Neonlicht wurde zu deinem Fahrzeug hinzugefügt.",3500,5);
    }


    ggf. kannst du deine Farben einfügen.


    Lg.

    Man soll weder annehmen noch besitzen, was man nicht wirklich zum Leben braucht.



  • Meinst du das so? @.Toby


    case 1:
    {
    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~ Neonlicht wurde zu deinem Fahrzeug hinzugefügt.",3500,5);
    }

  • SetPVarInt(playerid, "neon", 1);// Wofür steht das wenn ich fragen darf??

    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.

    Man soll weder annehmen noch besitzen, was man nicht wirklich zum Leben braucht.



  • 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^^

  • 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 Spawnt
    public 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öschen
    stock DestroyVehicleEx(vehicleid)
    {
    if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);}
    if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);}


    DestroyVehicle(vehicleid);
    return 1;
    }

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

  • 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ß
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • 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.

  • 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 Spawnt
    public 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öschen
    stock DestroyVehicleEx(vehicleid)
    {
    if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon1])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon1]);}
    if(IsValidDynamicObject(fVehicle[vehicleid][vehNeon2])) {DestroyDynamicObject(fVehicle[vehicleid][vehNeon2]);}


    DestroyVehicle(vehicleid);
    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;
    }
    }
    }
    }

  • 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ß
    }

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

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

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

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

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


  • 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