Всем привет, при переключении игроков выбивает ошибку reliable channel overflowed, не подскажите в чем может быть проблема?
Код:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <geoip>
#include <csx>
new name[33],ip[32], authid[33], city[64], country[33], region[64]
public plugin_init()
{
register_plugin("SpecInfo", "1.9.0", "LK")
}
public client_PreThink(id)
{
if(!is_user_connected(id))
return
static iuser2
static players[32], num, i
get_players(players, num, "bch")
for(i = 0; i < num; i++)
{
id = players[i]
iuser2 = pev(id, pev_iuser2)
if(iuser2 && id != iuser2)
{
if((entity_get_int(id,EV_INT_button) & IN_ATTACK) || (entity_get_int(id,EV_INT_button) & IN_ATTACK2))
{
if(get_user_flags(id) & ADMIN_LEVEL_F)
{
new msg[512], len
new osef[8];
new rank = get_user_stats(iuser2, osef, osef);
new maxrank = get_statsnum();
new player_ip[23];
get_user_ip(iuser2, player_ip, 22,1);
get_user_name(iuser2,name,32), get_user_ip(iuser2,ip,31,0), get_user_authid(iuser2,authid,32), geoip_city(ip,city,64,1), geoip_country_ex(ip,country,32,2), geoip_region_name(ip,region, 64,2);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\wНик: \r%s^n", name);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\wМесто в ранке: \r%d-е \wиз \r%d^n", rank, maxrank);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\wСтрана: \r%s^n", country);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\wГород: \r%s ^n", city);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\wИп: \r%s ^n", player_ip);
len += formatex(msg[len], charsmax(msg) - len, "^t^t^t\y|\w%s\y|^n",is_user_steam(iuser2) ? "STEAM":"Non Steam");
show_menu(id, 1023, msg, 4);
return;
}
}
}
}
return;
}
stock bool:is_user_steam(id)
{
static dp_pointer
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id)
server_exec()
return (get_pcvar_num(dp_pointer) == 2) ? true : false
}
return false
}