Raised This Month: $ Target: $400
 0% 

Table Align in MOTD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 10-17-2009 , 16:46   Re: Table Align in MOTD
Reply With Quote #4

Quote:
Originally Posted by hleV View Post
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:
Are you sure HL1 doesnt work with HTML, i tried it and it works fine. You just need to read from a file.
__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1
OneMoreLevel 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