Probleme mit meinem Menu

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
  • Hi,


    ich mache gerade ein Admin FS und habe ein Problem mit meinem Menu..


    1.


    Wenn ich ihm hauptadmin Menu bin und dann auf Waffen gehe, wird alle angezeigt aber wenn ich dann im Menü Waffen auf die Zeile "Zurück" gehe kommt das hauptadmin Menü nicht wieder.....



    Skript:


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    new Menu:Current = GetPlayerMenu(playerid);
    if(Current == Amenu)
    {
    switch(row)
    {
    case 0:


    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Amenu, playerid);
    TogglePlayerControllable(playerid, true);
    }
    else
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Amenu, playerid);
    }
    }
    case 1:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Amenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Amenu, playerid);
    }
    }
    case 2:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, false); [color=#ff0000]//<<<<<Wenn man das Menu wmenu also das waffen menu auswählt[/color]
    HideMenuForPlayer(Amenu, playerid);
    ShowMenuForPlayer(Wmenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, false);
    HideMenuForPlayer(Amenu, playerid);
    ShowMenuForPlayer(Wmenu, playerid);

    }
    }


    case 3:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Amenu, playerid);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Amenu, playerid);
    }
    }
    case 4:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Amenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Amenu, playerid);
    }
    }


    case 5:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Amenu, playerid);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Amenu, playerid);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);


    }
    }



    }
    if(Current == Wmenu)
    {
    switch(row)
    {
    case 0:


    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Wmenu, playerid);
    TogglePlayerControllable(playerid, true);
    }
    else
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Wmenu, playerid);
    }
    }
    case 1:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Wmenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Wmenu, playerid);
    }
    }
    case 2:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Wmenu, playerid);
    ShowMenuForPlayer(Wmenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    ShowMenuForPlayer(Wmenu, playerid);
    HideMenuForPlayer(Wmenu, playerid);
    }
    }


    case 3:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    HideMenuForPlayer(Wmenu, playerid);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Wmenu, playerid);
    }
    }
    case 4:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Wmenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, true);
    GameTextForPlayer(playerid,"~g~Script in Beta Phase ~r~:D",2500,3);
    HideMenuForPlayer(Wmenu, playerid);
    }
    }


    case 5:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    TogglePlayerControllable(playerid, false);
    HideMenuForPlayer(Wmenu, playerid); [color=#ff0000]//<<<<<wenn man auf die Zeile Zurück geht[/color]
    ShowMenuForPlayer(Amenu, playerid);
    }
    else
    {
    TogglePlayerControllable(playerid, false);
    HideMenuForPlayer(Wmenu, playerid);
    ShowMenuForPlayer(Amenu, playerid);


    }
    }
    }
    }



    }
    return 1;
    }



    M.f.G

    Zitat

    Nimm die Dinge wie sie sind: schlag, wenn du schlagen musst, tritt, wenn du Treten musst
    -Bruce Lee