Raised This Month: $ Target: $400
 0% 

Problem setting top10


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CsIosefin
Senior Member
Join Date: Aug 2009
Old 08-18-2009 , 10:13   Re: Problem setting top10
Reply With Quote #5

Okay I edited "formatex.
Code:
format_top10(sBuffer[2048])
{
    new iMax = get_statsnum()
    new izStats[8], izBody[8], t_sName[32]
    new iLen = 0

    if (iMax > 10)
    {
        iMax = 10;
    }

    iLen = formatex(sBuffer, 2047, "<center><body bgcolor=#000000><font color=#FFFFFF size=4 face=helvetica><pre>")
    iLen += formatex(sBuffer[iLen], 2047 - iLen, "%2s %22s %6s %6s %4s^n", "[Rank]", "[Nume]", "[Ucideri]", "[Decesuri]", "[HS]")
    
    for (new i = 0; i < iMax && 2047 - iLen > 0; i++)
    {
        get_stats(i, izStats, izBody, t_sName, 31)
        replace_all(t_sName, 31, "<", "[")
        replace_all(t_sName, 31, ">", "]")
        iLen += formatex(sBuffer[iLen], 2047 - iLen, "%-4.2d %22s %5.6d %6d %4d^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2])
    }
}

public cmdTop10(id)
{
    format_top10(g_sBuffer)
    show_motd(id, g_sBuffer, "Top 10")
    client_cmd(id,"spk ^"vox/deeoo user status^"")
    
    return PLUGIN_CONTINUE
}
I want to be arranged, as shown here look (deformed).
[IMG]http://img91.**************/img91/3848/tarep.jpg[/IMG]
Can you help him up? Thanks for the kindness you.
CsIosefin 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 15:03.


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