Make the rows straight in dialogs -
_Tommy - 04.02.2011
I was wondering, is there any option to make the dialog rows straight? For example, if I make one line as "Item (Value: 100)", and the second one "Item2 (Value: 100)", and then I chenge "Item2" to longer word which make the final text look like:
pawn Код:
Item (Value: 100)
Item2isnowlonger (Value: 100)
What I want, is to make the text look straight, instead of how this looks, for example:
pawn Код:
[LEFT]Item [/LEFT] [RIGHT](Value: 100)[/RIGHT]
[LEFT]Item2isnowlonger [/LEFT] [RIGHT](Value: 100)[/RIGHT]
Got me? There is a live example of my server, just took this screenshot:
I would be glad to get some suggestions.
Re: Make the rows straight in dialogs -
Steven Paul - 04.02.2011
use \t
Re: Make the rows straight in dialogs -
_Tommy - 04.02.2011
Can you show me an example of a code using the '\t' function?
Re: Make the rows straight in dialogs -
Steven Paul - 04.02.2011
pawn Код:
ShowPlayerDialog( playerid, 1, DIALOG_STYLE_LIST, "TEST", "Ak47\t\tCost $20\nBerreta\t\tCost $30", "Buy", "Close");
Re: Make the rows straight in dialogs -
MrDeath537 - 04.02.2011
'
\t' inserts a tabulation (check how is Slice using tabulations in his signature). You can use tabulations on your strings using \t.
Re: Make the rows straight in dialogs -
_Tommy - 04.02.2011
Still not the solution.
This is what happened after I used your hint:
This is my string:
pawn Код:
format(String, sizeof(String), "1. %s\t\t\t(Value: %d)\n2. %s\t\t\t(Value: %d)\n3. %s\t\t\t(Value: %d)\n4. %s\t\t\t(Value: %d)\n5. %s\t\t\t(Value: %d)\n6. %s\t\t\t(Value: %d)\n7. %s\t\t\t(Value: %d)\n8. %s\t\t\t(Value: %d)\n9. %s\t\t\t(Value: %d)\n10. %s\t\t\t(Value: %d)\n"
AW: Make the rows straight in dialogs -
!Phoenix! - 04.02.2011
Stupid question: How does your tabulator-key works? ;P
Simply remove one "\t" (tabulator)
Re: AW: Make the rows straight in dialogs -
_Tommy - 04.02.2011
Quote:
Originally Posted by !Phoenix!
Stupid question: How does your tabulator works? ;P
Simply remove one "\t" (tabulator)
|
Well I don't really think thats the case since the results are the same.
It still shows me what It was showing me before I removed one tabulator, and this is my new string:
pawn Код:
format(String, sizeof(String), "1. %s\t\t(Value: %d)\n2. %s\t\t(Value: %d)\n3. %s\t\t(Value: %d)\n4. %s\t\t(Value: %d)\n5. %s\t\t(Value: %d)\n6. %s\t\t(Value: %d)\n7. %s\t\t(Value: %d)\n8. %s\t\t(Value: %d)\n9. %s\t\t(Value: %d)\n10. %s\t\t(Value: %d)\n",
Re: Make the rows straight in dialogs -
Steven Paul - 04.02.2011
It's common sense that you have used more than One tabulator
Re: Make the rows straight in dialogs -
_Tommy - 04.02.2011
Quote:
Originally Posted by Steven Paul
It's common sense that you have used more than One tabulator
|
Please read my last reply, it still doesn't work.