new buff[1535], len, i, name[32], iFrags, iDeaths;
new OldLen, bool:IsCut;
len += formatex(buff[len], charsmax(buff) - len, "<META http-equiv=Content-Type content='text/html;charset=UTF-8'><link href='http://neix.ru/aes/aes_v.css' rel=stylesheet type=text/css>");
#if defined KillAssist
len += formatex(buff[len], charsmax(buff) - len, "<table><tr><th>#<th>Ник<th>Убийств<th>В голову<th>Смертей<th>Ассистов<th>Эфф.<th>Скилл<th>Время в игре</tr>");
#else
len += formatex(buff[len], charsmax(buff) - len, "<table><tr><th>#<th>Ник<th>Убийств<th>В голову<th>Смертей<th>Эфф.<th>Скилл<th>Время в игре</tr>");
#endif
while(SQL_MoreResults(query))
{
SQL_ReadResult(query, 0, name, charsmax(name));
replace_string(name, charsmax(name), "<", "[");
replace_string(name, charsmax(name), ">", "]");
iFrags = SQL_ReadResult(query, 1);
iDeaths = SQL_ReadResult(query, 2);
//iShots = SQL_ReadResult(query, 4);
new iHS = SQL_ReadResult(query, 3);
//iHits = SQL_ReadResult(query, 5);
new Float:fSkill; SQL_ReadResult(query, 6, fSkill);
OldLen = len;
#if defined KillAssist
len += formatex(buff[len], charsmax(buff) - len, "<tr><td>%d<td>%s<td>%d<td>%d<td>%d<td>%d<td>%.2f%%<td><div id='%s'>%.0f</div><td>%d</tr>", ++i, name,
iFrags, iHS, iDeaths, SQL_ReadResult(query, 7), effec(iFrags, iDeaths), g_arrViewSkills[get_skill(fSkill)], fSkill, g_arrPlayerData[id][GameTime]);
#else
len += formatex(buff[len], charsmax(buff) - len, "<tr><td>%d<td>%s<td>%d<td>%d<td>%d<td>%.2f%%<td><div id='%s'>%.0f</div><td>%d</tr>", ++i, name,
iFrags, iHS, iDeaths, effec(iFrags, iDeaths), g_arrViewSkills[get_skill(fSkill)], fSkill, g_arrPlayerData[id][GameTime]);