AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to remove numbers from menu_create? (https://forums.alliedmods.net/showthread.php?t=308803)

jonatat 07-04-2018 07:06

How to remove numbers from menu_create?
 
I have a simple menu like that:

PHP Code:

formatex(killscheck63"Kills: %i"pKills[id]) 
menu_additemmenukillscheck"3" 

How can i remove numbers? Like:

1. Kills:
2. Deaths:

and etc.

I wanna do like:

Kills:
Beaths:

Ghosted 07-04-2018 07:12

Re: How to remove numbers from menu_create?
 
You cant, you can use old style menus.
natives:

register_menu
show_menu

You cant add items into this menu, you must use char array.
This one is a bit/byte harder.

klippy 07-04-2018 08:33

Re: How to remove numbers from menu_create?
 
You can use menu_addtext. It has a bug though, so if you are using 1.8.3 you can use menu_addtext2, read the doc to find out what the bug is.

Natsheh 07-04-2018 08:35

Re: How to remove numbers from menu_create?
 
you can make the exit button number 1 and then add the texts and then set menu prop_exit MENU EXIT NEVER.

Ghosted 07-04-2018 08:50

Re: How to remove numbers from menu_create?
 
Quote:

Originally Posted by KliPPy (Post 2600942)
You can use menu_addtext. It has a bug though, so if you are using 1.8.3 you can use menu_addtext2, read the doc to find out what the bug is.

Text is clickable?

jonatat 07-04-2018 11:38

Re: How to remove numbers from menu_create?
 
Quote:

Originally Posted by KliPPy (Post 2600942)
You can use menu_addtext. It has a bug though, so if you are using 1.8.3 you can use menu_addtext2, read the doc to find out what the bug is.

So i can do something like that:

PHP Code:

menu_addtextmenukillscheck 

?

fysiks 07-04-2018 14:16

Re: How to remove numbers from menu_create?
 
Quote:

Originally Posted by Ghosted (Post 2600949)
Text is clickable?

No. What button would even be used? The whole point of the numbers are to denote what button chooses that option.

Ghosted 07-04-2018 14:21

Re: How to remove numbers from menu_create?
 
Quote:

Originally Posted by fysiks (Post 2601016)
No. What button would even be used? The whole point of the numbers are to denote what button chooses that option.

I think this post wasnt for me :/

CrAzY MaN 07-04-2018 14:47

Re: How to remove numbers from menu_create?
 
Do you mean like tha GunGame one?

fysiks 07-04-2018 21:03

Re: How to remove numbers from menu_create?
 
Quote:

Originally Posted by Ghosted (Post 2601017)
I think this post wasnt for me :/

Yes, it was a response to your post (which is why I quoted your post).


All times are GMT -4. The time now is 12:24.

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