AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu Problem (https://forums.alliedmods.net/showthread.php?t=293328)

orel56000 01-29-2017 11:20

Menu Problem
 
Hey, I created a menu, and if I'm pressing 0, the item is equal to -3, and when I'm moving to another menu (by another command) and also -3.

so how do I know if player pressed 0 or moved to another menu?

OciXCrom 01-29-2017 11:58

Re: Menu Problem
 
Check if the item is MENU_EXIT.

orel56000 01-29-2017 12:30

Re: Menu Problem
 
Quote:

Originally Posted by OciXCrom (Post 2490868)
Check if the item is MENU_EXIT.

Its the same, if you moving to another menu its still MENU_EXIT and I can't check if he pressed exit or moved to another menu.

OciXCrom 01-29-2017 12:57

Re: Menu Problem
 
Why do you need to check that? Explain what you're trying to do.

orel56000 01-29-2017 13:25

Re: Menu Problem
 
Quote:

Originally Posted by OciXCrom (Post 2490890)
Why do you need to check that? Explain what you're trying to do.

I have Shop Main Menu, inside the Shop Menu I have Knife shop, If I'm on the Knife Shop menu, and I write for ex /manage (totally another menu) its moving me to the manage menu and after half a second its moving me back to the shop main menu. The shop detect that I closed the knife menu and its opening itself again automaticlly.
I want that: if I'm in the knife shop and I'm pressing exit, it will move me back to the Shop Main Menu, and if I'm writing /manage while the knife shop is opening it will open the manage menu only.






sorry for my bad english.


All times are GMT -4. The time now is 21:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.