Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
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.
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
Yeap, instead of using id -1, You could use 32768 and I tested.
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
Using 32768 for the ID hides the dialog? :S
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
Yesh, somehow it works. Any values above 32767 works.
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
Thanks I will use that until the negative numbers get fixed
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
32768 doesn't work... I don't think it is possible to hide a dialog in 0.3c?
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
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", "");
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
-1 doesn't work, so why would -200?
Posts: 297
Threads: 47
Joined: Jun 2008
Reputation:
0
according to the ls_elevator script, return 0; is an option if you don't need to return anything
Posts: 655
Threads: 49
Joined: Sep 2007
Reputation:
0
Just let them press the button and hide it ?