01.03.2014, 19:02
It doesn't open the input dialog. What's the issue?
pawn Код:
if(dialogid == SHOP_DIALOG)
{
switch(dialogid)
{
case 0:
{
ShowPlayerDialog(playerid, SHOP_SKIN, DIALOG_STYLE_INPUT, "Enter a valid Skin ID.", "", "OK", "Cancel");
}
}
}
if(dialogid == SHOP_SKIN)
{
new skin = strval(inputtext);
SetPlayerSkin(playerid, skin);
GivePlayerMoney(playerid, -5000);
}