23.12.2012, 18:28
Hello, when i click close on my dialog it opens the handgun dialog?
Where do i edit the close button in pawno?
Where do i edit the close button in pawno?
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 ({ }).
}
}
if(dialogid == DIALOGID)
{
if(!response) return 1; // This will just close the dialog if "Close" is clicked.
// Your code if "Choose" is clicked.
}