Dialog help
#1

I made it to where when they pick 'Patrol', it will show this message box dialog telling them the items they get when they go on patrol. Problem is that when they press 'Select' for a positive response, they don't get any of the items.
Can someone help me?

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==12)
    {
        if(response)
        switch(listitem)
        {
            case 0:
            {
                SetPlayerColor(playerid,-1);
                SetPlayerArmour(playerid,0);
                ResetPlayerWeapons(playerid);
                SetPlayerSkin(playerid,pInfo[playerid][Skin]);
            }
            case 1:
            {
                ShowPlayerDialog(playerid,13,0,"{0094FF}Patrol","Glock 9mm, nightstick, pepper spray, and body armor","Select","Cancel");
                if(!response)
                if(response)
                {
                    SetPlayerColor(playerid,COLOR_BLUE);
                    GivePlayerWeapon(playerid,22,51);
                    GivePlayerWeapon(playerid,3,0);
                    GivePlayerWeapon(playerid,41,365);
                    SetPlayerArmour(playerid,100);
                    SetPlayerSkin(playerid,281);
                }
            }
        }
        return 1;
    }
}
Reply


Messages In This Thread
Dialog help - by Noles2197 - 03.02.2013, 15:41
Re: Dialog help - by Windrush - 03.02.2013, 15:47
Re: Dialog help - by Fergy - 03.02.2013, 15:49
Re: Dialog help - by ]Rafaellos[ - 03.02.2013, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)