Neon Script fast fertig :S

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
  • Ich hab mir ein neon system gechrieben und hier liegt das problem neon funktioniert alles aber ich kann es nicht entfernen :S ich weiss nicht was ich in listitem 5 schreiben soll also zum entfernen DestroyObject("unddann???" :S


    if(dialogid == NEON)
    {
    if(response)
    {
    if(listitem == 0)//BLAU
    {
    new vehid,blue,blue1;
    vehid = GetPlayerVehicleID(playerid);
    blue = CreateObject(18648,0,0,0,0,0,0,288);
    blue1 = CreateObject(18648,0,0,0,0,0,0,288);
    AttachObjectToVehicle(blue, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(blue1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~b~ Blaues~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 1)//GRÜN
    {
    new vehid,gruen,gruen1;
    vehid = GetPlayerVehicleID(playerid);
    gruen = CreateObject(18649,0,0,0,0,0,0,287);
    gruen1 = CreateObject(18649,0,0,0,0,0,0,287);
    AttachObjectToVehicle(gruen, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(gruen1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~g~Gruenes~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 2)//GELB
    {
    new vehid,gelb,gelb1;
    vehid = GetPlayerVehicleID(playerid);
    gelb = CreateObject(18650,0,0,0,0,0,0,286);
    gelb1 = CreateObject(18650,0,0,0,0,0,0,286);
    AttachObjectToVehicle(gelb, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(gelb1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~y~Gelbes~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 3)//WEISS
    {
    new vehid,weiss,weiss1;
    vehid = GetPlayerVehicleID(playerid);
    weiss = CreateObject(18652,0,0,0,0,0,0,285);
    weiss1 = CreateObject(18652,0,0,0,0,0,0,285);
    AttachObjectToVehicle(weiss, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(weiss1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~w~Weisses~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 4)//PINK
    {
    new vehid,pink,pink1;
    vehid = GetPlayerVehicleID(playerid);
    pink = CreateObject(18651,0,0,0,0,0,0,283);
    pink1 = CreateObject(18651,0,0,0,0,0,0,283);
    AttachObjectToVehicle(pink, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(pink1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~p~Pinkes~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 5)
    {
    hier kommt ja DestroyObject aber weiss net wie :S
    GameTextForPlayer(playerid, "~g~Das Neon wurde von deinem Auto entfernt",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    return 1;
    }
    }

  • ganz oben das hier?:
    #define MAX_PLAYERS 10 ???


    und dann das ergänzen?



    if(dialogid == NEON)
    {
    if(response)
    {
    if(listitem == 0)//BLAU
    {
    new vehid,blue,blue1;
    vehid = GetPlayerVehicleID(playerid);
    blue = CreateObject(18648,0,0,0,0,0,0,288);
    blue1 = CreateObject(18648,0,0,0,0,0,0,288);
    MAX_PLAYERS 0 =AttachObjectToVehicle(blue, vehid, 0.8,0,-0.70,0,0,0);
    MAX_PLAYERS 1 =AttachObjectToVehicle(blue1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~b~ Blaues~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 1)//GRÜN
    {
    new vehid,gruen,gruen1;
    vehid = GetPlayerVehicleID(playerid);
    gruen = CreateObject(18649,0,0,0,0,0,0,287);
    gruen1 = CreateObject(18649,0,0,0,0,0,0,287);
    MAX_PLAYERS 2 =AttachObjectToVehicle(gruen, vehid, 0.8,0,-0.70,0,0,0);
    MAX_PLAYERS 3=AttachObjectToVehicle(gruen1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~g~Gruenes~w~Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 2)//GELB
    {
    new vehid,gelb,gelb1;
    vehid = GetPlayerVehicleID(playerid);
    gelb = CreateObject(18650,0,0,0,0,0,0,286);
    gelb1 = CreateObject(18650,0,0,0,0,0,0,286);
    MAX_PLAYERS 4 =AttachObjectToVehicle(gelb, vehid, 0.8,0,-0.70,0,0,0);
    MAX_PLAYERS 5 =AttachObjectToVehicle(gelb1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~y~Gelbes~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 3)//WEISS
    {
    new vehid,weiss,weiss1;
    vehid = GetPlayerVehicleID(playerid);
    weiss = CreateObject(18652,0,0,0,0,0,0,285);
    weiss1 = CreateObject(18652,0,0,0,0,0,0,285);
    MAX_PLAYERS 6 =AttachObjectToVehicle(weiss, vehid, 0.8,0,-0.70,0,0,0);
    MAX_PLAYERS 7 =AttachObjectToVehicle(weiss1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~w~Weisses~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 4)//PINK
    {
    new vehid,pink,pink1;
    vehid = GetPlayerVehicleID(playerid);
    pink = CreateObject(18651,0,0,0,0,0,0,283);
    pink1 = CreateObject(18651,0,0,0,0,0,0,283);
    MAX_PLAYERS 8 =AttachObjectToVehicle(pink, vehid, 0.8,0,-0.70,0,0,0);
    MAX_PLAYERS 9 =AttachObjectToVehicle(pink1, vehid, -0.8,0,-0.70,0,0,0);
    GameTextForPlayer(playerid, "~p~Pinkes~w~ Neon wurde an deinem auto angebracht",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    if(listitem == 5)
    {
    DestroyObject(MAX_PLAYERS 0[playerid]);
    DestroyObject(MAX_PLAYERS 1[playerid]);
    DestroyObject(MAX_PLAYERS 2[playerid]);
    DestroyObject(MAX_PLAYERS 3[playerid]);
    DestroyObject(MAX_PLAYERS 4[playerid]);
    DestroyObject(MAX_PLAYERS 5[playerid]);
    DestroyObject(MAX_PLAYERS 6[playerid]);
    DestroyObject(MAX_PLAYERS 7[playerid]);
    DestroyObject(MAX_PLAYERS 8[playerid]);
    DestroyObject(MAX_PLAYERS 9[playerid]);

    GameTextForPlayer(playerid, "~g~Das Neon wurde von deinem Auto entfernt",3500,5);
    GivePlayerMoney(playerid, -5000);
    }
    return 1;
    }
    }

    Einmal editiert, zuletzt von Robdan1395 ()