[HELP]What exactly does DisableMenu? -
[DOG]irinel1996 - 11.10.2012
Hello,
I just saw
this function over the SA-MP Wiki and it hasn't a good description, at least I didn't understand it.
Is it the same as
HideMenuForPlayer? Or it deletes the menu for ever?
Thank you!
Re: [HELP]What exactly does DisableMenu? -
Roel - 11.10.2012
It's to disable a menu lol, but you should use it anymore, it's out of date man, use dialogs or clickable textdraw.
Re: [HELP]What exactly does DisableMenu? -
Red_Dragon. - 11.10.2012
It only DISABLES the menu TEMPORARILY but if you want it PERMANENTLY this is what you want:
https://sampwiki.blast.hk/wiki/DestroyMenu
Hope i helped
Re: [HELP]What exactly does DisableMenu? - Jarnu - 11.10.2012
Couldn't find any function "HideMenuForPlayer"
and It temporarily disables for permanent its DestroyMenu
Re: [HELP]What exactly does DisableMenu? -
Roel - 11.10.2012
Quote:
Originally Posted by Jarnu
Couldn't find any function "HideMenuForPlayer"
and It temporarily disables for permanent its DestroyMenu
|
Lol you have quoted me in your signature haha nice.
Re: [HELP]What exactly does DisableMenu? -
M3mPHi$_S3 - 11.10.2012
Suppos i type /weapons so there will be an menu we can say an dailog like
PHP код:
WeaponMenu = CreateMenu("Weapons", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(WeaponMenu, 0, "Rocket Launcher");
AddMenuItem(WeaponMenu, 0, "Flamethrower");
AddMenuItem(WeaponMenu, 0, "Minigun");
AddMenuItem(WeaponMenu, 0, "Grenades");
No 1: | | | " Rocket Launcher" |
NO 2: | | | Flame Thrower |
NO 3: | | | Minigun |
NO 4: | | | Gerandes |
EXAMPLE> if you click on any one of them so the function will work as
PHP код:
GivePlayerWeapon(36, 9999);
and hide menu it will hide it
Respuesta: Re: [HELP]What exactly does DisableMenu? -
[DOG]irinel1996 - 11.10.2012
Quote:
Originally Posted by Roel
It's to disable a menu lol, but you should use it anymore, it's out of date man, use dialogs or clickable textdraw.
|
That's not my point.
My question is, is it the same as HideMenuForPlayer or it has any other effect?
_____________________________
Quote:
Originally Posted by Red_Dragon.
|
So, it disables it for some time, and appears again later?

_____________________________
Quote:
Originally Posted by мυ∂υℓ_вacнα
Suppos i type /weapons so there will be an menu we can say an dailog like
PHP код:
WeaponMenu = CreateMenu("Weapons", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(WeaponMenu, 0, "Rocket Launcher");
AddMenuItem(WeaponMenu, 0, "Flamethrower");
AddMenuItem(WeaponMenu, 0, "Minigun");
AddMenuItem(WeaponMenu, 0, "Grenades");
No 1: | | | " Rocket Launcher" | NO 2: | | | Flame Thrower | NO 3: | | | Minigun | NO 4: | | | Gerandes |
EXAMPLE> if you click on any one of them so the function will work as
PHP код:
GivePlayerWeapon(36, 9999);
and hide menu it will hide it 
|
Are you trying to explain that if I use DisableMenu, options won't be selectable anymore?
_____________________________
I'm too lazy to test right now, but no one cleared my doubt yet.
Re: Respuesta: Re: [HELP]What exactly does DisableMenu? -
M3mPHi$_S3 - 11.10.2012
Quote:
Originally Posted by irinel1996
I'm too lazy to test right now, but no one cleared by doubt yet.
|
if there will be no menu mean hidden then is it possible to click

? 0f course NO