Raised This Month: $ Target: $400
 0% 

Table Align in MOTD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-17-2009 , 10:18   Table Align in MOTD
Reply With Quote #1

I'm working on some in-game ranking system for other games like HLDM, ESF, etc. and I need help with aligning stuff in MOTD. The MOTD doesn't support HTML so I have to play with text formatting.

PHP Code:
stock fnUpdateTop15()
{
        
g_szTop15[0] = 0;
 
        new 
iSize ArraySize(g_aSteamID), szSteamID[32], szName[32], iKillsiLen;
        
iSize iSize 15 15 iSize;
        
iLen formatex(g_szTop152047"%6s%22s%s^n^n""Rank""Name""Kills");
 
        for (new 
iRankiRank iSizeiRank++)
        {
                
ArrayGetString(g_aSteamIDiRankszSteamID31);
                
TrieGetString(g_tNameszSteamIDszName31);
                
TrieGetCell(g_tKillsszSteamIDiKills);
 
                
iLen += formatex(g_szTop15[iLen], 2047 iLen"%-7.2d%22s%6d^n"iRank 1szNameiKills);
        }

As you can see I've already made something about text formatting, but that doesn't fit my needs yet.

This is what I get:
Attached Thumbnails
Click image for larger version

Name:	motd.jpg
Views:	371
Size:	80.5 KB
ID:	51808  
__________________
hleV is offline
 



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 22:32.


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