nothing happened after clicking dialog
#9

Then you need to create another dialogid FISH_DIALOG+1...
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == FISH_DIALOG)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                  new string[300];
                  format(string, sizeof(string), "Buy Baits | Cost: %d", BaitCost);
                  ShowPlayerDialog(playerid,FISH_DIALOG+1, DIALOG_STYLE_INPUT, "Fish Market", string, "Buy", "Cancel");
                }
                case 1:
                {
                  new string[300];
                  format(string, sizeof(string), "Buy Line | Cost: %d", LineCost);
                  ShowPlayerDialog(playerid,FISH_DIALOG+2, DIALOG_STYLE_INPUT, "Fish Market", string, "Buy", "Cancel");
                }
                case 2:
                {
                  new string[300];
                  format(string, sizeof(string), "Buy Rod | Cost: %d", RodCost);
                  ShowPlayerDialog(playerid, FISH_DIALOG+3, DIALOG_STYLE_MSGBOX, "Fish Market", string, "Buy", "Cancel");
                }
                case 3:
                {
                  new string[300];
                  new cleanpay = PlayerInfo[playerid][pFishMoney] -= PlayerInfo[playerid][pTax];
                  format(string, sizeof(string), "Sell Fish\n\nFish Money : %d\nTax : %d \nClean Play : %d ",PlayerInfo[playerid][pFishMoney],PlayerInfo[playerid][pTax],cleanpay );
                  ShowPlayerDialog(playerid, FISH_DIALOG+4, DIALOG_STYLE_MSGBOX, "Fish Market", string, "Buy", "Cancel");
                }
            }
        }
        return 1;
     }
     if(dialogid==FISH_DIALOG+1)
     {
       if(response)
         //buy baits
     }
     if(dialogid==FISH_DIALOG+2)
     {
       if(response)
         //buy line
     }
     if(dialogid==FISH_DIALOG+3)
     {
       if(response)
         //buy road
     }
     if(dialogid==FISH_DIALOG+4)
     {
       if(response)
         //Sell fish
     }
    return 0;
}
Reply


Messages In This Thread
nothing happened after clicking dialog - by xFirex - 03.06.2014, 03:42
Re: nothing happened after clicking dialog - by Guest4390857394857 - 03.06.2014, 03:46
Re: nothing happened after clicking dialog - by xFirex - 03.06.2014, 03:54
Re: nothing happened after clicking dialog - by Threshold - 03.06.2014, 03:59
Re: nothing happened after clicking dialog - by xFirex - 03.06.2014, 04:01
Re: nothing happened after clicking dialog - by xFirex - 03.06.2014, 04:23
Re: nothing happened after clicking dialog - by Koala818 - 03.06.2014, 04:52
Re: nothing happened after clicking dialog - by xFirex - 03.06.2014, 04:55
Re: nothing happened after clicking dialog - by Koala818 - 03.06.2014, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)