Dialog \t problem , I GIVE REP[++] FAST!
#1

I have a problem with my dialog format. I tried to allign the text but some rows are having problems.
Why?
Code:
pawn Код:
if(id != INVALID_PLAYER_ID)
            {
                format(aim, sizeof(aim), "%s %s\t%s\t\tonline right now\t%s/3fw\t%s days\n",aim,test,query,test2,days);
            }
            else
            {
                format(aim, sizeof(aim), "%s %s\t%s\t\t%s\t%s/3fw\t%s days\n",aim,test,query,test3,test2,days);
            }
            memid ++;
Photo:
http://i.imgur.com/PTIHbQL.png
Reply
#2

Anyone ?
Reply
#3

Because their player names are too long. Add another '\t' between the name and the dates, that's the best you can do.

EDIT:
pawn Код:
if(id != INVALID_PLAYER_ID) format(aim, sizeof(aim), "%s %s\t\t%s\t\tonline right now\t%s/3fw\t%s days\n",aim,test,query,test2,days);
            else format(aim, sizeof(aim), "%s %s\t\t%s\t\t%s\t%s/3fw\t%s days\n",aim,test,query,test3,test2,days);
            memid ++;
Reply
#4

Still same ..
Reply
#5

Like I said, it all depends on the length of the player's names. You need to check the length of their names and apply the appropriate indentations.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)