13.08.2015, 11:34
Quote:
I'm just curious about this;
Код:
{ if(! response ) { // what happens, if player clicks right button? } |
So, therefore, if You have:
pawn Код:
ShowPlayerDialog( playerid, ID, DIALOG_STYLE_TEXT, "Header", "Content", "Button_A", "Button_B" );
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == ID)
{
if( !response ) {
//Player pressed either ESC button or Button_B
} else {
//Player pressed either ENTER button or Button_A
}
}
// or alternate form
if(dialogid == ID)
{
if( !response ) {
//Player pressed either ESC button or Button_B
return 1;
}
// Player pressed either ENTER or Button_A
}
// and so on.
pawn Код:
{
if(! response ) {
// HERE
}
Greetings.