03.06.2014, 03:59
Did you remove listitem 3...?
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == FISH_DIALOG)
{
if(response)
{
new string[35];
switch(listitem)
{
case 0:
{
format(string, sizeof(string), "Buy Baits | Cost: $%d", BaitCost);
ShowPlayerDialog(playerid,FISH_DIALOG+1, DIALOG_STYLE_INPUT, "Fish Market", string, "Buy", "Cancel");
}
case 1:
{
format(string, sizeof(string), "Buy Line | Cost: $%d", LineCost);
ShowPlayerDialog(playerid,FISH_DIALOG+2, DIALOG_STYLE_INPUT, "Fish Market", string, "Buy", "Cancel");
}
case 2:
{
format(string, sizeof(string), "Buy Rod | Cost: $%d", RodCost);
ShowPlayerDialog(playerid, FISH_DIALOG+3, DIALOG_STYLE_MSGBOX, "Fish Market", string, "Buy", "Cancel");
}
case 3: ShowPlayerDialog(playerid, FISH_DIALOG+4, DIALOG_STYLE_MSGBOX, "Fish Market", "Sell Your Fish?", "Sell", "Cancel");
}
}
return 1;
}
return 0;
}