Display dialog problem.
#6

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
Try this one.
pawn Код:
if(dialogid == 27) //buy clothes
{
    if(!response) return 0;
    if(listitem == 0)
    {
        DisplayDialogForPlayer(playerid, 77);
    }
    if(listitem == 1)
    {
        DisplayDialogForPlayer(playerid, 29);
    }
    if(listitem == 2)
    {
        new biz = GetPlayerVirtualWorld(playerid);
        PlayerInfo[playerid][pHelmet] = 18645;
        GameTextForPlayer(playerid, "~r~-$200", 5000, 1);
        GiveMoney(playerid,-200);
        BizInfo[biz][bTill] += 200;
        BizInfo[biz][bProducts] -= 1;
        PlayerPlaySound(playerid, 1052,0.0, 0.0, 0.0);
        SendClientMessage(playerid, COLOR_GRAD2, "* Helmet purchased, use /helmet to put it on.");
    }
}
Didn't make a difference, hmm... here's the code for showing the dialog when the users chooses listitem 0:
pawn Код:
case 77:
        {
            new biz = GetPlayerVirtualWorld(playerid);
            format(string, sizeof(string), "%s",BizInfo[biz][bName]);
            ShowPlayerDialog(playerid,77,DIALOG_STYLE_INPUT,string,"Type the skin ID you want below (costs $500):","Buy","Cancel");
        }
Reply


Messages In This Thread
Display dialog problem. - by Jack_Leslie - 14.09.2011, 11:28
Re: Display dialog problem. - by Michael@Belgium - 14.09.2011, 11:48
Re: Display dialog problem. - by [MWR]Blood - 14.09.2011, 11:55
Re: Display dialog problem. - by Jack_Leslie - 14.09.2011, 12:00
Re: Display dialog problem. - by [MWR]Blood - 14.09.2011, 12:10
Re: Display dialog problem. - by Jack_Leslie - 14.09.2011, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)