This callback was added in SA-MP 0.3a and will not work in earlier versions!
This callback is called when a player responds to a dialog shown using ShowPlayerDialog by either clicking a button, pressing ENTER/ESC or double-clicking a list item (if using a list style dialog).
|playerid||The ID of the player that responded to the dialog.|
|dialogid||The ID of the dialog the player responded to, assigned in ShowPlayerDialog.|
|response||1 for left button and 0 for right button (if only one button shown, always 1)|
|listitem||The ID of the list item selected by the player (starts at 0) (only if using a list style dialog, otherwise will be -1).|
|inputtext||The text entered into the input box by the player or the selected list item text.|
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.
Parameters can contain different values, based on dialog's style (click for more examples).
It is appropriate to switch through different dialogids, if you have many.
A player's dialog doesn't hide when the gamemode restarts, causing the server to print "Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID" if a player responded to this dialog after restart.
- ShowPlayerDialog: Show a dialog to a player.