Raised This Month: $ Target: $400
 0% 

Menu spacing problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-09-2005 , 17:20   Menu spacing problem
Reply With Quote #1

ok I have a menu that contains integers that change. I want them to all line up after some text, but im having some problrems.. Heres the code:

Code:
new len = format(szMenu2, 255, "\rChoose your upgrades:\R^n^n") len += format(szMenu2[len], 255 - len, "\y1.%s Hardrive         %i^n", COLOR[UPGRADES[id][0]], UPGRADES[id][0]) len += format(szMenu2[len], 255 - len, "\y2.%s Hover Boost      %i^n", COLOR[UPGRADES[id][1]], UPGRADES[id][1]) len += format(szMenu2[len], 255 - len, "\y3.%s Processor        %i^n", COLOR[UPGRADES[id][2]], UPGRADES[id][2]) len += format(szMenu2[len], 255 - len, "\y4.%s Damage Amplifier %i", COLOR[UPGRADES[id][3]], UPGRADES[id][3])

Its showing up like this:

Code:
Hardrive 0
Hover Boost      0
Processor       0
Damage Amplifier 0
Its very odd, and I want to be able to fix it... Anyone have any ideas?
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-09-2005 , 19:03  
Reply With Quote #2

looks a bit advanced...

COLOR[UPGRADES[id][0]]


is it a float? or maybe there is nothing in COLOR[UPGRADES[id][0]] that isnt 0 :p
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-09-2005 , 19:11  
Reply With Quote #3

You could Right-Align them using \R
Code:
len += format(szMenu2[len], 255 - len, "\y1.%s Hardrive\R%i^n", COLOR[UPGRADES[id][0]], UPGRADES[id][0])
xeroblood is offline
Send a message via MSN to xeroblood
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-10-2005 , 21:59  
Reply With Quote #4

I'm not sure if it works in Small/AMXx, but you could try \t, the tab character in C++.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


Thread Tools
Display Modes

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 14:11.


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