SA-MP Forums Archive
Dialog \t problem , I GIVE REP[++] FAST! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog \t problem , I GIVE REP[++] FAST! (/showthread.php?tid=557579)



Dialog \t problem , I GIVE REP[++] FAST! - buburuzu19 - 14.01.2015

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


Re: Dialog \t problem , I GIVE REP[++] FAST! - buburuzu19 - 14.01.2015

Anyone ?


Re: Dialog \t problem , I GIVE REP[++] FAST! - Threshold - 14.01.2015

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 ++;



Re: Dialog \t problem , I GIVE REP[++] FAST! - buburuzu19 - 14.01.2015

Still same ..


Re: Dialog \t problem , I GIVE REP[++] FAST! - Threshold - 14.01.2015

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.