Dialogs
#5

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.

Reply


Messages In This Thread
Dialogs - by ihatetn931 - 15.01.2010, 17:21
Re: Dialogs - by ihatetn931 - 18.01.2010, 14:25
Re: Dialogs - by deather - 18.01.2010, 15:28
Re: Dialogs - by ihatetn931 - 18.01.2010, 15:30
Re: Dialogs - by deather - 18.01.2010, 15:36
Re: Dialogs - by ihatetn931 - 18.01.2010, 15:41
Re: Dialogs - by deather - 18.01.2010, 17:13
Re: Dialogs - by ihatetn931 - 18.01.2010, 17:24
Re: Dialogs - by deather - 18.01.2010, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)