Two Menu's interfering? - 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)
+--- Thread: Two Menu's interfering? (
/showthread.php?tid=455591)
Two Menu's interfering? -
QatarKnight - 02.08.2013
I downloaded a filterscript that contained a menu for some admin stuff. When i clicked on one of the things in the menu i was suprised that it took me to a car tuning menu that was in my gamemode. Is there a way i can stop making the admin menu from taking me to the car tuning menu without deleting the car tuning menu?.
Re: Two Menu's interfering? -
SMCentral - 02.08.2013
Are these actual menus? Textdraws or a dialog?
Re: Two Menu's interfering? -
QatarKnight - 02.08.2013
They're dialogs
Re: Two Menu's interfering? -
SMCentral - 02.08.2013
That's not a problem. What you need to do is change the dialog ID of either the gamemode or the filterscript. I advice to change the filterscript one.
What you need to do is check OnDialogResponse and find the dialog ID then change all instances of the dialog ID to something not used - especially ShowPlayerDialog.
Re: Two Menu's interfering? -
QatarKnight - 02.08.2013
Quote:
Originally Posted by SMCentral
That's not a problem. What you need to do is change the dialog ID of either the gamemode or the filterscript. I advice to change the filterscript one.
What you need to do is check OnDialogResponse and find the dialog ID then change all instances of the dialog ID to something not used - especially ShowPlayerDialog.
|
Do i need to change the number of the cases?
Re: Two Menu's interfering? -
SMCentral - 02.08.2013
Yes then change the same number from any instances of ShowPlayerDialog.
Re: Two Menu's interfering? -
QatarKnight - 02.08.2013
Quote:
Originally Posted by SMCentral
Yes then change the same number from any instances of ShowPlayerDialog.
|
Ok i did it and the menu stopped interfering but when i click an option it does nothing. How do i fix that?.
Re: Two Menu's interfering? -
SMCentral - 02.08.2013
Make sure you also change the dialog ID in OnDialogResponse as well.
ShowPlayerDialog sends an ID to OnDialogResponse which determines the response.
Re: Two Menu's interfering? -
Pottus - 02.08.2013
This is why y_dialogs are superior
Re: Two Menu's interfering? -
Scenario - 02.08.2013
Quote:
Originally Posted by [uL]Pottus
This is why y_dialogs are superior
|
Ssssssshhhhhhh. We all know you make love to y_dialogs every night!