26.11.2016, 15:55
There is an extra closed bracket. If the dialog was not found, you must return 0 so it will search in other scripts (if any). Replace the last 4 lines
with:
So basically the format is:
pawn Код:
}
}
return 1;
}
pawn Код:
default: return 0;
}
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch (dialogid)
{
case ...:
{
// code..
}
case ...:
{
// code..
}
...
default: return 0;
}
return 1;
}