Welcome to the Builder Academy

Question Restricting Length

More
27 Jun 2012 06:37 #291 by Halenbane
Restricting Length was created by Halenbane
I'm working on doing a new do_score, and I am doing it inside of a preset graphical boundary, so it looks like
a page. I know I can use a number along with my variables to determine the amount of space allocated for it but from
what I seen it always places to the right.

IE:

[%2d] for an Int of 18 would be [18], but if it was for 5 it would be [ 5]

What do I need to do to make it always start from the left, leaving the blank space on the right.

[5 ]

Please Log in or Create an account to join the conversation.

More
27 Jun 2012 09:05 #292 by Halenbane
Replied by Halenbane on topic Re: Restricting Length
Think I answered my own question, seems %-5d does it. :D

Please Log in or Create an account to join the conversation.

More
27 Jun 2012 13:39 #293 by Vatiken
Replied by Vatiken on topic Re: Restricting Length

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds