Dialog Response
#8

The problem is obviously because this code isn't being ran.
pawn Код:
if(amount > 0 && amount < 15000)
{
    BusinessInfo[i][bFee][0] = amount;
    GameTextForPlayer(playerid,"~g~Price has been changed",3000,4);
    break;
}
Also, it doesn't make sense to loop through everything, and then check if response is true.
pawn Код:
if(response)
{
    for(new i = 0; i<MAX_BUSINESSES;i++) {
        if(IsPlayerInRangeOfPoint(playerid,25,BusinessInfo[i][bEntranceX],BusinessInfo[i][bEntranceY],BusinessInfo[i][bEntranceZ]))
        {
            new amount = strval(inputtext);
            if(amount > 0 && amount < 15000)
            {
                BusinessInfo[i][bFee][0] = amount;
                GameTextForPlayer(playerid,"~g~Price has been changed",3000,4);
                break;
            }
        }
    }
}
else
{
    ShowPlayerDialog(playerid, DIALOGID_BUSINESSPRICES, DIALOG_STYLE_LIST, "Business Menu", BItems(i), "Edit", "Back");
}
There could be a lot of things wrong, and you can easily fix this if you learn to debug. Perhaps the businesses' locations aren't even being loaded.
Reply


Messages In This Thread
Dialog Response - by Mento - 02.08.2012, 22:48
Re: Dialog Response - by Viiih - 02.08.2012, 23:43
Re: Dialog Response - by Mento - 03.08.2012, 01:45
Re: Dialog Response - by Knappen - 03.08.2012, 09:02
Re: Dialog Response - by Mento - 04.08.2012, 09:16
Re: Dialog Response - by tiernantheman - 04.08.2012, 10:27
Re: Dialog Response - by Mento - 06.08.2012, 02:57
Re: Dialog Response - by ReneG - 06.08.2012, 03:04
Re: Dialog Response - by Mento - 06.08.2012, 04:31

Forum Jump:


Users browsing this thread: 1 Guest(s)