Befehl will 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
  • Hi,
    Ich hab mir n befehl ertellt wie ich das Waffenlager öffne jedoch will da was nicht.
    Wo is das problem?

    if (strcmp("/waffen", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) //Yakuza
    {
    ShowPlayerDialog(playerid,DIALOG_YAKUZAWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nAK-47\nMP5\nM4\nShotgun\nCombatShotgun\nUzi\nTec9","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Triaden
    {
    ShowPlayerDialog(playerid,DIALOG_TRIADENWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nAK-47\nMP5\nM4\nShotgun\nCombatShotgun\nUzi\nTec9","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Grove Street
    {
    ShowPlayerDialog(playerid,DIALOG_BALLASWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nAK-47\nMP5\nM4\nShotgun\nCombatShotgun\nUzi\nTec9","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Ballas
    {
    ShowPlayerDialog(playerid,DIALOG_BALLASWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nAK-47\nMP5\nM4\nShotgun\nCombatShotgun\nUzi\nTec9","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Russen Mafia
    {
    ShowPlayerDialog(playerid,DIALOG_RUSSENWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nAK-47\nMP5\nM4\nShotgun\nCombatShotgun\nUzi\nTec9","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    ShowPlayerDialog(playerid,DIALOG_SFPDWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nMP5\nShotgun","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    ShowPlayerDialog(playerid,DIALOG_FBIWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nMP5\nM4\nSniper\nShotgun","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 4)
    {
    ShowPlayerDialog(playerid,DIALOG_ARMYWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nMP5\nM4\nCombat Shotgun\nSniper","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    ShowPlayerDialog(playerid,DIALOG_HITMANWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nMP5\nShotgun\nSniper","Waffe nehmen","Abbrechen");
    }
    else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    ShowPlayerDialog(playerid,DIALOG_TERRORWAFFEN,DIALOG_STYLE_LIST,"Waffenlager","Deagle\nSchutzweste\nMP5\nShotgun\nSniper\nM4","Waffe nehmen","Abbrechen");
    }
    return 1;
    }


    Whats das problem?

  • #define DIALOG_SFPDWAFFEN 50001
    #define DIALOG_FBIWAFFEN 50002
    #define DIALOG_ARMYWAFFEN 50003
    #define DIALOG_HITMANWAFFEN 50004
    #define DIALOG_TERRORWAFFEN 50005
    #define DIALOG_YAKUZAWAFFEN 50006
    #define DIALOG_TRIADENWAFFEN 50007
    #define DIALOG_BALLASWAFFEN 50008
    #define DIALOG_GROVEWAFFEN 50009
    #define DIALOG_RUSSENWAFFEN 50010