03.06.2014, 03:42
I press the Sell Fish and nothing appear.. its should show the dialog.
its should appear the dialog Sell Your Fish.. bla2
Help![Smiley](images/smilies/smile.png)
CMD
its should appear the dialog Sell Your Fish.. bla2
Help
![Smiley](images/smilies/smile.png)
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == FISH_DIALOG)
{
if(response)
{
if(listitem == 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");
}
if(listitem == 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");
}
if(listitem == 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");
}
if(listitem == 3)
{
new string[300];
format(string, sizeof(string), "Selll Your Fish", RodCost);
ShowPlayerDialog(playerid, FISH_DIALOG+4, DIALOG_STYLE_MSGBOX, "Fish Market", string, "Buy", "Cancel");
}
}
return 1;
}
return 0;
}
CMD
pawn Код:
CMD:fish(playerid,params[])
{
ShowPlayerDialog(playerid, FISH_DIALOG, DIALOG_STYLE_LIST, "Fish Market", "Buy Baits\nBuy Line\nBuy Rod\nSell Fish", "Buy", "Cancel");
return 1;
}