请问这段代码哪里是限制字节的?
请问这段代码哪里是限制字节的?统计量超过5人就显示不完全了。。。
public disInfo(id)
{
const SIZE=1536
new istate,msg,len=0,players,num,pname,t;
get_players(players,num);
//CS1.6
len += format(msg, SIZE - len, "<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>");
len += format(msg, SIZE - len, "body{color:#FFCC99;background-color:black;margin-top:5}.A{background-color:#310000}.B{background-color:#630000}td{font-size:14px}");
len += format(msg, SIZE - len, "</style><center><b><font size=4>作弊检测</b><table width=500>");
len += format(msg, SIZE - len, "<tr bgcolor=#9C0000><td><b>CS_ID</b></td><td><b>穿墙杀人</b></td><td><b>超速次数</b></td><td><b>被闪杀人</b></td>");
for(new i=0;i<num;i++){
t=players;
if( !g_playerThWallWarn && !g_playerSpeedWarn && !g_playerFlashWarn)
continue;
else {
if (equal(istate,"A")) copy(istate,3,"B")
else copy(istate,3,"A")
get_user_name(t,pname,31);
len += format(msg, SIZE - len, "<tr class=%s><td>%s<td style='text-align=right'>%d<td style='text-align=right'>%d<td style='text-align=right'>%d",istate,pname,g_playerThWallWarn,g_playerSpeedWarn,g_playerFlashWarn);
}
}
len += format(msg, SIZE - len, "</table><hr size=1 color=blue><font size=2>");
if( get_cvar_num("fc_startvote") )
len += format(msg, SIZE - len, "如果你的警告达到系统界限,系统将会投票 !");
else len += format(msg, SIZE - len, "如果你的警告达到系统界限,你将会被踢出服务器!");
len += format(msg, SIZE - len, "<p align=left><b>服务器默认设置:</b>");
len += format(msg, SIZE - len, "<p></p>");
len += format(msg, SIZE - len, "<p align=left>穿墙杀人警告次数: %d</p>",get_cvar_num("fc_thwallwarntime"));
len += format(msg, SIZE - len, "<p align=left>加速警告次数: %d</p>",get_cvar_num("fc_speedwarntime"));
len += format(msg, SIZE - len, "<p align=left>被闪时杀人警告次数: %d</p>",get_cvar_num("fc_flashwarntime"));
show_motd ( id, msg, "反作弊检测");
return PLUGIN_CONTINUE;
}
回复: 请问这段代码哪里是限制字节的?
cs的motd限制 没办法 要不就把网页版改回普通版
页:
[1]