Whats wrong?
#2

This shouldn't be difficult:
pawn Код:
//
            if(listitem == 15) - THIS
            {
                This if(GetPlayerMoney(playerid) >= 500)
                {
                    GivePlayerMoney(playerid,-500);
                    GiveBizMoney(playerid, 500);
                    HasBoughtMask[playerid] = 1;
                    GameTextForPlayer(playerid,"~w~You purchased a mask for ~r~ $500", 5000, 1);
                    SendClientMessage(playerid, COLOR_WHITE, "Use /mask to take on/off your mask");
                    return 1;
                //<==== Add here a bracket
            }
            if(listitem == 16) - This
            {
                if(GetPlayerMoney(playerid) >=50)
                {
                    GivePlayerMoney(playerid, -500);
                    GiveBizMoney(playerid, 500);
                    gotbandage[playerid] = 1;
                    GameTextForPlayer(playerid,"~w~You purchased bandage for ~r~ $50", 5000, 1);
                    SendClientMessage(playerid, COLOR_WHITE, "Use /bandage to use it");
                    return 1;
                    }//<=====This bracket should be removed
                }
            }
Reply


Messages In This Thread
Whats wrong? - by BizzyD - 30.01.2011, 01:09
Re: Whats wrong? - by iMonk3y - 30.01.2011, 01:18
Re: Whats wrong? - by BizzyD - 30.01.2011, 01:22
Re: Whats wrong? - by BizzyD - 30.01.2011, 01:25
Re: Whats wrong? - by iMonk3y - 30.01.2011, 01:31
Re: Whats wrong? - by BizzyD - 30.01.2011, 01:32
Re: Whats wrong? - by iMonk3y - 30.01.2011, 01:40
Re: Whats wrong? - by BizzyD - 30.01.2011, 02:06
Re: Whats wrong? - by iMonk3y - 30.01.2011, 02:15
Re: Whats wrong? - by BizzyD - 30.01.2011, 13:01

Forum Jump:


Users browsing this thread: 4 Guest(s)