[FS] Unterbodenbeleuchtung

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



    #define neonmenu 1


    Bei OnPlayerCommandText

    new cmd[256];


    if(strcmp("/neon",cmd,true))
    {
    ShowPlayerDialog(playerid, neonmenu, DIALOG_STYLE_LIST, "Neonlichter Menu", "Blau\nGrün\nRot\nWeiß\nGelb\nPink", "Auswählen", "Abbrechen");
    return 1;
    }



    Bei OnDialogRespone

    if(dialogid == neonmenu) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 1) //Grün
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18649,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18649,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 2) //Rot
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18647,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18647,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 3) //Weiß
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18652,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18652,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 4) //Gelb
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18650,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18650,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 5) //Pink
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18651,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18651,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    }
    }
    return 1;
    }


    Habe ich jetzt von dem Thema extra genommen, jetzt solltest du es verstehen.


    Viel Erfol.g

  • hier
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32211) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32212) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32219) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32220) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32227) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32228) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32235) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32236) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32243) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32244) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32251) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32252) : error 017: undefined symbol "AttachObjectToVehicle"

  • Bei mir öffnet sich kein Fenster und es passiert auch einfach gar nichts, wenn ich /neon eingebe. Woran könnte das liegen? Pls Help :(
    Hab auch alles richtig beim Compilen! ;(