Raised This Month: $ Target: $400
 0% 

menu addtext


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JohnBloper
Member
Join Date: Jul 2014
Old 07-21-2014 , 12:58   menu addtext
Reply With Quote #1




How can do you do this?
I thought you need a item before add a menu_addtext.

Last edited by JohnBloper; 07-21-2014 at 12:58.
JohnBloper is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-21-2014 , 13:26   Re: menu addtext
Reply With Quote #2

This is most likely the whole title of the menu. With ^n you can add a new line.
mottzi is offline
Send a message via MSN to mottzi
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-21-2014 , 13:56   Re: menu addtext
Reply With Quote #3

Quote:
Originally Posted by mottzi View Post
This is most likely the whole title of the menu. With ^n you can add a new line.
I don't think so, I am sure it is old style menu.
klippy is offline
JohnBloper
Member
Join Date: Jul 2014
Old 07-21-2014 , 14:09   Re: menu addtext
Reply With Quote #4

Quote:
Originally Posted by KliPPy View Post
I don't think so, I am sure it is old style menu.
Is there a tut on old menu style?

or maybe you could help me here.
PHP Code:
formatexszItemcharsmaxszItem ), "\r[yMsy] \wJailbreak Shop^n^n\y%s \wStats^n^n\y-\d Bonus health:\r %i^n\y-\d Bonus armour:\r %i^n\y-\d Bonus damage:\r %i^n\y-\d Knife Price:\r %i^n\y-\d Exp Needed:\y %i^n"
,szKnivesItem ], kCvarkCvarsHealthItem ] ), kCvarkCvarsArmorItem ] ), kCvarkCvarsDamageItem ]), kCvarkCvarsCostItem ] ), kCvarkCvarsExpItem ] )); 
After bonus damage nothing will appear.

Last edited by JohnBloper; 07-21-2014 at 14:10.
JohnBloper is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-21-2014 , 15:50   Re: menu addtext
Reply With Quote #5

Quote:
Originally Posted by JohnBloper View Post
Is there a tut on old menu style?

or maybe you could help me here.
PHP Code:
formatexszItemcharsmaxszItem ), "\r[yMsy] \wJailbreak Shop^n^n\y%s \wStats^n^n\y-\d Bonus health:\r %i^n\y-\d Bonus armour:\r %i^n\y-\d Bonus damage:\r %i^n\y-\d Knife Price:\r %i^n\y-\d Exp Needed:\y %i^n"
,szKnivesItem ], kCvarkCvarsHealthItem ] ), kCvarkCvarsArmorItem ] ), kCvarkCvarsDamageItem ]), kCvarkCvarsCostItem ] ), kCvarkCvarsExpItem ] )); 
After bonus damage nothing will appear.
Increase size of szItem, you are adding a bunch of data there. And if you want more help post full code :/
__________________
Hey ^_^
NikKOo31 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-21-2014 , 15:46   Re: menu addtext
Reply With Quote #6

Here I found a random post which contains how it is done, look at the code: https://forums.alliedmods.net/showth...ght=style+menu
Or you could take a look at Zombie Plague 4.3 code, main menu is done as an old style menu there.
klippy is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-21-2014 , 16:20   Re: menu addtext
Reply With Quote #7

Theres no need at all to swap back to the old system only to have a multiline title.
mottzi is offline
Send a message via MSN to mottzi
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-21-2014 , 21:15   Re: menu addtext
Reply With Quote #8

Do not understand why everyone in formatex one?

Just do this:
Code:
formatex (szItem, charsmax ( szItem ), "\y%s", szKnives [ Item ] )
menu_additem (iMenu, szItem); 

formatex (szItem, charsmax ( szItem ), "\d Bonus health: \r%i", kCvar( kCvarsHealth[ Item ] )
menu_additem (iMenu, szItem);

Last edited by Fuck For Fun; 07-21-2014 at 21:17. Reason: missed szItem
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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