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?