Dialog cancel and select button
#3

response = 1 if you press the left button, and response = 0 if you press the right one.

If you have the buttons "Select" and "Cancel", you would have to do the code for "Select" when response == 1, and the code for "Cancel" when response == 0.

In your code you already do the check if( response ) - which checks if it's 1. If you want to close it when a player presses "Cancel", simply add this after the if( response )-statement has ended:
pawn Код:
else
{
    return true;
}
Reply


Messages In This Thread
Dialog cancel and select button - by NicholasA - 13.01.2013, 12:57
Re: Dialog cancel and select button - by geohareas - 13.01.2013, 13:07
Re: Dialog cancel and select button - by LarzI - 13.01.2013, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)