[Autohaus] Bug

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
  • Es ist so das bei jedem Herz und jeder Weste das Autohaus Menü kommt und man dort überall Autos kaufen kann.




    #include


    #define COLOR_BLUE 0x0000FFAA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_PURPLE 0x9900FFAA
    #define COLOR_BROWN 0x993300AA
    #define COLOR_ORANGE 0xFF9933AA
    #define COLOR_CYAN 0x99FFFFAA
    #define COLOR_TAN 0xFFFFCCAA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_KHAKI 0x999900AA
    #define COLOR_LIME 0x99FF00AA
    #define COLOR_BLACK 0x000000AA
    #define COLOR_TURQ 0x00A3C0AA
    #define COLOR_SYSTEM 0xEFEFF7AA


    new Menu:menu[MAX_PLAYERS];


    //Car Shop by Snipe69


    #define FILTERSCRIPT


    public OnFilterScriptInit()
    {


    AddStaticPickup( 1274, 23, 2051.2986,2211.9353,10.8203 );
    AddStaticPickup( 1274, 23, 1080.5807,-1757.7505,13.3837 );
    AddStaticPickup( 1274, 23, -1656.4481,452.7616,7.1872 );
    AddStaticPickup( 1274, 23, 1283.0946,186.5609,20.0283 );
    AddStaticPickup( 1274, 23, -534.3010,2564.7146,53.4141 );
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }



    public OnPlayerRequestClass(playerid, classid)
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }



    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    menu[playerid] = CreateMenu("Vehicles",2,200,100,150,75);
    SetMenuColumnHeader(menu[playerid], 0, "Autohaus Menü:");
    AddMenuItem(menu[playerid], 0, "Buffalo 200000$");
    AddMenuItem(menu[playerid], 0, "Infernus 500000$");
    AddMenuItem(menu[playerid], 0, "Cheetah 1000000$");
    AddMenuItem(menu[playerid], 0, "Turismo 650000$");
    AddMenuItem(menu[playerid], 0, "Comet 200000$");
    AddMenuItem(menu[playerid], 0, "Super GT 800000$");
    AddMenuItem(menu[playerid], 0, "Bullet 500000$");
    AddMenuItem(menu[playerid], 0, "Jester 90000$");
    AddMenuItem(menu[playerid], 0, "Euros 150000$");
    AddMenuItem(menu[playerid], 0, "Phoenix 250000$");
    AddMenuItem(menu[playerid], 0, "Alpha 89000$");
    AddMenuItem(menu[playerid], 0, "Flash 100000$");
    TogglePlayerControllable(playerid, 0);
    ShowMenuForPlayer(menu[playerid], playerid);
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    new Menu:Main1 = GetPlayerMenu(playerid);
    new vehicle;
    new vehicle1;
    new vehicle2;
    new vehicle3;
    new vehicle4;
    new vehicle5;
    new vehicle6;
    new vehicle7;
    new vehicle8;
    new vehicle9;
    new vehicle10;
    new vehicle11;
    if (Main1 == menu[playerid])
    {
    {


    weiß nicht ob daran was falsch ist.
    Oder könnte jemand vielleicht ein Autohaus script zur verfügung stellen?</a_samp>

    ▬|████|▬This is Nudelholz.

    Copy Nudelholz in your Sig to make better Kuchens and other Teigprodukte!

  • des is jetzt nur ein auzug, ob man daran erkennt woran es liegt,

    der rest is im script drinne

    ▬|████|▬This is Nudelholz.

    Copy Nudelholz in your Sig to make better Kuchens and other Teigprodukte!

  • Wenn du ein Pickup aufnimmst (egal welches) macht er automatisch folgendes:


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    menu[playerid] = CreateMenu("Vehicles",2,200,100,150,75);
    SetMenuColumnHeader(menu[playerid], 0, "Autohaus Menü:");
    AddMenuItem(menu[playerid], 0, "Buffalo 200000$");
    AddMenuItem(menu[playerid], 0, "Infernus 500000$");
    AddMenuItem(menu[playerid], 0, "Cheetah 1000000$");
    AddMenuItem(menu[playerid], 0, "Turismo 650000$");
    AddMenuItem(menu[playerid], 0, "Comet 200000$");
    AddMenuItem(menu[playerid], 0, "Super GT 800000$");
    AddMenuItem(menu[playerid], 0, "Bullet 500000$");
    AddMenuItem(menu[playerid], 0, "Jester 90000$");
    AddMenuItem(menu[playerid], 0, "Euros 150000$");
    AddMenuItem(menu[playerid], 0, "Phoenix 250000$");
    AddMenuItem(menu[playerid], 0, "Alpha 89000$");
    AddMenuItem(menu[playerid], 0, "Flash 100000$");
    TogglePlayerControllable(playerid, 0);
    ShowMenuForPlayer(menu[playerid], playerid);
    return 1;
    }


    Wenn du mir die Autohaus PickUpId sagst, schreib ich dir das um.

    LG cinema