SA-MP Forums Archive
Hiding a dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Hiding a dialog (/showthread.php?tid=209245)



Hiding a dialog - beckzy - 10.01.2011

It seems with 0.3c you can no longer hide a dialog using id -1? I'm pretty sure this is not a problem in my script. Can somebody confirm this for me? If it is a bug it definitly needs to be fixed.


Re: Hiding a dialog - Retardedwolf - 10.01.2011

Yeap, instead of using id -1, You could use 32768 and I tested.


Re: Hiding a dialog - beckzy - 10.01.2011

Using 32768 for the ID hides the dialog? :S


Re: Hiding a dialog - Retardedwolf - 10.01.2011

Yesh, somehow it works. Any values above 32767 works.


Re: Hiding a dialog - beckzy - 10.01.2011

Thanks I will use that until the negative numbers get fixed


Re: Hiding a dialog - beckzy - 10.01.2011

32768 doesn't work... I don't think it is possible to hide a dialog in 0.3c?


Re: Hiding a dialog - Biesmen - 10.01.2011

Yes it is.
Use a negative value.
e.g the dialog id 200 is open.
To close dialog id 200, use this:

ShowPlayerDialog(playerid, -200, DIALOG_STYLE_MSGBOX, "Bye dialog", "Bye", "Bye", "");


Re: Hiding a dialog - beckzy - 10.01.2011

-1 doesn't work, so why would -200?


Re: Hiding a dialog - Rizard - 10.01.2011

according to the ls_elevator script, return 0; is an option if you don't need to return anything


Re: Hiding a dialog - cmg4life - 15.01.2011

Just let them press the button and hide it ?