13.01.2013, 13:08
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:
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;
}