Messed up something in the dialog...
#3

Missing bracket
pawn Код:
if(dialogid == 501)
        {
            if(response)
            {
                if (listitem == 0)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SafeSetPlayerArmour(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes a new Armour from the armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 1)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SetPlayerHealth(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Medical Kit and use it.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 2)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 29, 250);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a MP5 from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 3)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 25, 150);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Shotgun from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 4)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldoff if you want to remove the Shield.");
                        }
                    }
                }
                else if (listitem == 5)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldbackoff if you want to remove the Shield.");
                        }
                    }
                }
            }
}
Reply


Messages In This Thread
Messed up something in the dialog... - by Don_Cage - 10.03.2013, 19:33
Re: Messed up something in the dialog... - by Mystique - 10.03.2013, 19:38
Re: Messed up something in the dialog... - by DaRk_RaiN - 10.03.2013, 19:39
Re: Messed up something in the dialog... - by Don_Cage - 10.03.2013, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)