Skin selection via inputtext?
#7

Well, either way it's still not opening the input dialog.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case SHOP_DIALOG:
        {
            if (response)
            {
                if (!listitem) ShowPlayerDialog(playerid, SHOP_SKIN, DIALOG_STYLE_INPUT, "Enter a valid Skin ID.", "",  "OK", "Cancel");
            }
            return 1;
        }
        case SHOP_SKIN:
        {
            if (response)
            {
                SetPlayerSkin(playerid, strval(inputtext));
                GivePlayerMoney(playerid, -5000);
            }
            return 1;
        }
    }
    return 0;
}
I did it before without the !listitem. Just forgot how. :3
Reply


Messages In This Thread
Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:02
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:08
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:12
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:16
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:19
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:22
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:23
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:25

Forum Jump:


Users browsing this thread: 3 Guest(s)