I have problem with a weapon dialog
#3

Should it now be like this:

pawn Код:
if(listitem == 0):
        {
            GivePlayerWeapon(playerid,22,100);
            GivePlayerMoney(playerid, -Amount..)
        }
        if(listitem == 1):
        {
            GivePlayerWeapon(playerid, 30, 1000);
            GivePlayerMoney(playerid, -Amount..)
        }
        if(listitem == 2):
        {
            GivePlayerWeapon(playerid,31, 1000);
            GivePlayerMoney(playerid, -Amount..)
        }
        if(listitem == 3):
        {
            GivePlayerWeapon(playerid,8, -1);
            GivePlayerMoney(playerid, -Amount..)
        }
    }

Because in the menu it shows the price its going to cost, just fill where Amount.. is to the amount you want taking away, Its got to be Listitem right? Give that a try etc?
Reply


Messages In This Thread
I have problem with a weapon dialog - by saker277 - 22.08.2011, 12:36
Re: I have problem with a weapon dialog - by Improvement™ - 22.08.2011, 12:44
Re: I have problem with a weapon dialog - by PhoenixB - 22.08.2011, 12:45
Re: I have problem with a weapon dialog - by Improvement™ - 22.08.2011, 12:49
Re: I have problem with a weapon dialog - by saker277 - 22.08.2011, 12:56
Re: I have problem with a weapon dialog - by [MWR]Blood - 22.08.2011, 13:17
Re: I have problem with a weapon dialog - by Devilxz97 - 14.05.2012, 08:34

Forum Jump:


Users browsing this thread: 1 Guest(s)