Raised This Month: $ Target: $400
 0% 

Adding a text under a menu


Post New Thread Reply   
 
Thread Tools Display Modes
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 12-13-2013 , 09:29   Re: Adding a text under a menu
Reply With Quote #11

Quote:
Originally Posted by matsi View Post
You need to format your menu title if you want to show some variables.

Code:
new szMenuTitle[ 64 ], iNumber = 5; formatex( szMenuTitle, charsmax( szMenuTitle ), "\rMenu title: ^nMy number: %i", iNumber ) new menu = menu_create( szMenuTitle, "menu_handler" );
again, read what we write
mottzi is offline
Send a message via MSN to mottzi
matsi
Thinkosaur
Join Date: Sep 2006
Old 12-13-2013 , 11:41   Re: Adding a text under a menu
Reply With Quote #12

I think that the main problem is that the op never tested the code in-game. He doesn't know what '^n' means so he thinks that they will appear on the same line. If he wants i can take screenshot of the code in-game so that he will feel stupid and learn from it.


edit:
[img]http://img34.**************/img34/6875/v5wa.jpg[/img]
__________________

Accepting all kinds of requests via private message.

Last edited by matsi; 12-13-2013 at 11:49.
matsi is offline
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 02:45.


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