18.01.2010, 15:36
OnDialogResponse
Warning: This callback was added in SA-MP version 0.3. It is not available in previous versions.
This callback is called when a player presses any of the buttons on the dialog created using ShowPlayerDialog.
Parameters:
(playerid, dialogid, response, listitem, inputtext[])
playerid The ID of the player who responded to the dialog box.
dialogid The ID of the dialog the player responded to, assigned in ShowPlayerDialog.
response 1 for first button and 0 for second button
listitem The ID of the list item selected by the player.
inputtext[] The text entered into the input box by the player or the selected list item text.
See the response..
If response == 1 its first button and if response == 0 it is for the second button.
Hope it helps.
Warning: This callback was added in SA-MP version 0.3. It is not available in previous versions.
This callback is called when a player presses any of the buttons on the dialog created using ShowPlayerDialog.
Parameters:
(playerid, dialogid, response, listitem, inputtext[])
playerid The ID of the player who responded to the dialog box.
dialogid The ID of the dialog the player responded to, assigned in ShowPlayerDialog.
response 1 for first button and 0 for second button
listitem The ID of the list item selected by the player.
inputtext[] The text entered into the input box by the player or the selected list item text.
See the response..
If response == 1 its first button and if response == 0 it is for the second button.
Hope it helps.