SA-MP Forums Archive
Detecting if dialog box has been closed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detecting if dialog box has been closed (/showthread.php?tid=102159)



Detecting if dialog box has been closed - lolumadd - 13.10.2009

Is it possible to detect if the player presses the exit / close button on a dialog box.

EXAMPLE:
Код:
if(dialogid == 1)
{
if(response)
{
if(closed) == 1)
{
Is there something like that?


Re: Detecting if dialog box has been closed - Beaver07 - 13.10.2009

if response = 1 then it's the button 1

if response = 0 then it's the button 2


Re: Detecting if dialog box has been closed - lolumadd - 13.10.2009

Thanks!