HELP!?!? Dialog unresponsive.
#5

Quote:
Originally Posted by 0ne
Посмотреть сообщение
U should add if(response) i think.
No, you don't.(I think)

Anyways, try this:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
            if(!response)
            {
                SendClientMessage(playerid, COLOR_RED, "You cancelled!");
                return 1;
            }
           
            switch(listitem)
            {
                case 1:
                {
                    GivePlayerMoney(playerid, -5000);
                    GivePlayerWeapon(playerid, 28, 50);
                    SendClientMessage(playerid, COLOR_PINK, "You have just baught a mini uzi with 50 ammunition for $5000!");
                }
                case 2:
                {
                    GivePlayerMoney(playerid, -7000);
                    GivePlayerWeapon(playerid, 30, 50);
                    SendClientMessage(playerid, COLOR_PINK, "You have just baught an AK47 with 50 ammunition for $7,000!");
                }
                case 3:
                {
                    GivePlayerMoney(playerid, -10000);
                    GivePlayerWeapon(playerid, 31, 50);
                    SendClientMessage(playerid, COLOR_PINK, "You have just baught an M4 carbine with 50 ammunition for $10,000!");
                }
            return 1;
        }
And make sure the dialog id's match.
Reply


Messages In This Thread
HELP!?!? Dialog unresponsive. - by BigAl - 21.11.2010, 16:42
Re: HELP!?!? Dialog unresponsive. - by WillyP - 21.11.2010, 16:44
Re: HELP!?!? Dialog unresponsive. - by 0ne - 21.11.2010, 16:45
Re: HELP!?!? Dialog unresponsive. - by Victor - 21.11.2010, 16:46
Re: HELP!?!? Dialog unresponsive. - by WillyP - 21.11.2010, 16:47
Re: HELP!?!? Dialog unresponsive. - by [L3th4l] - 21.11.2010, 17:24

Forum Jump:


Users browsing this thread: 4 Guest(s)