| killergirl |
03-12-2011 05:15 |
show_motd help
The code is:
PHP Code:
{ iLen = format( sBuffer, MAX_BUFFER_LENGTH, "<center>TOP 15</center>^n" ) iLen += format( sBuffer[ iLen ], MAX_BUFFER_LENGTH - iLen, "<table border='1'><tr><th>%2s</th> <th>%2s</th> <th>%2s</th> <th>%2s</th> <th>%2s</th> <th>%6s</th></tr>^n", "RANK", "NAME", "KILLS", "DEATHS", "POINTS", "PROCESS") for( new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++ ) { get_stats( i, izStats, izBody, t_sName, MAX_NAME_LENGTH ) replace_all( t_sName, MAX_NAME_LENGTH, "<", "[" ) replace_all( t_sName, MAX_NAME_LENGTH, ">", "]" ) new Float:result new Float:rez result = (100.0 * float(izStats[STATS_KILLS]) / float(izStats[STATS_KILLS] + izStats[STATS_DEATHS])) rez = ( (float(izStats[ STATS_DEATHS] ) / 100 ) * ( float(izStats[STATS_KILLS] ) ) ) iLen += format( sBuffer[ iLen ], MAX_BUFFER_LENGTH - iLen, "<tr><td>%2d.</td> <td>%-22.22s</td> <td>%6d</td> <td>%6d</td> <td><font color='blue'>%3.0f%</font></td> <td>%3.0f%%</td></tr></table>", i + 1, t_sName, izStats[ STATS_KILLS ], izStats[ STATS_DEATHS ], rez, result) } }
The first row is ok, but the others:
[IMG]http://img851.**************/img851/3813/2011031200001v.jpg[/IMG]
|