Hiding a dialog
#1

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.
Reply
#2

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

Using 32768 for the ID hides the dialog? :S
Reply
#4

Yesh, somehow it works. Any values above 32767 works.
Reply
#5

Thanks I will use that until the negative numbers get fixed
Reply
#6

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

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", "");
Reply
#8

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

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

Just let them press the button and hide it ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)