01.03.2014, 19:23
Well, either way it's still not opening the input dialog.
I did it before without the !listitem. Just forgot how. :3
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;
}