14.06.2016, 19:45
That's why there is "response" parameter. If response is 0, then the player either clicked on second button or pressed ESC. If you want the code to be executed only when a player clicked the first button or pressed Enter:
pawn Код:
Dialog:fishtools(playerid, response, listitem, inputtext[])
{
if (response)
{
// code..
}
return 1;
}