Dialog "Close" problem
#1

Hello, when i click close on my dialog it opens the handgun dialog?

Where do i edit the close button in pawno?

Reply
#2

if(!response) return 0;
Reply
#3

Hit CTRL+F and search for "Choose a weapon type" and you will find a ShowPlayerDialog which is this text is apart of, get the dialog ID (ShowPlayerDialog(playerid, DIALOGID,..) and search for "dialogid == DIALOGID" then you should have your code that way.

pawn Код:
if(dialogid == DIALOGID)
{
    if(response)
    {
        // What happens if you click "Choose" button.
    }
    else
    {
        // What happens if clicks "Close" button, if you want it to just close add a "return 1;" here or delete the whole else with it braces ({ }).
    }

}
Or you can find it that way

pawn Код:
if(dialogid == DIALOGID)
{
    if(!response) return 1; // This will just close the dialog if "Close" is clicked.
    // Your code if "Choose" is clicked.
}
Reply
#4

Thnx got my shops working!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)