 |
|
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
|

10-17-2009
, 16:46
Re: Table Align in MOTD
|
#4
|
Quote:
Originally Posted by hleV
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], iKills, iLen; iSize = iSize > 15 ? 15 : iSize; iLen = formatex(g_szTop15, 2047, "%6s%22s%s^n^n", "Rank", "Name", "Kills"); for (new iRank; iRank < iSize; iRank++) { ArrayGetString(g_aSteamID, iRank, szSteamID, 31); TrieGetString(g_tName, szSteamID, szName, 31); TrieGetCell(g_tKills, szSteamID, iKills); iLen += formatex(g_szTop15[iLen], 2047 - iLen, "%-7.2d%22s%6d^n", iRank + 1, szName, iKills); } }
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.
__________________
|
|
|
|