How to make this dialog show
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Select your skin", "Please input the Skin ID you wish to use", "Select", "");
    return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1) {
        if(response)
        {
            new skinid = strval(inputtext);
            if(!skinid) {
                ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Select your skin", "Please input the Skin ID you wish to use", "Select", "");
            }
            else
            {
                if(skinid < 0 || skinid > 299) {
                    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Select your skin", "Please input the Skin ID you wish to use\nHint: Skin IDs range from 0 - 299", "Select", "");
                }
                else
                {
                    SetPlayerSkin(playerid, skinid);
                    PlayerInfo[playerid][pModel] = skinid;
                }
            }
        }
        else
        {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Select your skin", "Please input the Skin ID you wish to use", "Select", "");
        }
        return 1;
    }
    return 1;
}
You'll have to change the dialogid according to your script.
Reply


Messages In This Thread
How to make this dialog show - by NinjaChicken - 21.08.2012, 05:17
Re: How to make this dialog show - by Jack_Leslie - 21.08.2012, 05:22
Re: How to make this dialog show - by NinjaChicken - 21.08.2012, 05:27
Re: How to make this dialog show - by JaKe Elite - 21.08.2012, 05:31
Re: How to make this dialog show - by Jack_Leslie - 21.08.2012, 05:31
Re: How to make this dialog show - by _Vortex - 21.08.2012, 05:32
Re: How to make this dialog show - by NinjaChicken - 21.08.2012, 06:30
Re: How to make this dialog show - by Jack_Leslie - 21.08.2012, 08:39

Forum Jump:


Users browsing this thread: 2 Guest(s)