Hi, so first of all i'd like to mention that i do not have any knowledge in SP coding.
Basically a plugin named advcommands is spamming my server console with
Code:
L 02/07/2020 - 21:11:15: [SM] Call stack trace:
L 02/07/2020 - 21:11:15: [SM] [0] BfReadByte
L 02/07/2020 - 21:11:15: [SM] [1] Line 619, C:\Users\Yuval\Desktop\adv\scripting\advcommands.sp::OnSayText
L 02/07/2020 - 21:11:15: [SM] Exception reported: Native is not bound
L 02/07/2020 - 21:11:15: [SM] Blaming: advcommands.smx
L 02/07/2020 - 21:11:15: [SM] Call stack trace:
This is the part of the line 619
Code:
public Action:OnSayText(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
{
new from = BfReadByte(bf);
if (reliable && g_iAdmVision && (from == players[0]))
{
new bool:dead = !IsPlayerAlive(from),bool:at = (g_iAdmVision & 8) || ((g_iAdmVision & 4) && g_bAlltalk);
new team = GetClientTeam(from);
decl String:message[MAX_BUFF];
BfReadByte(bf);
BfReadString(bf, "params", message, sizeof(message), i);
new bool:tsay = StrContains(message,"_All") < 0;
new ncl = 0;
decl cl[MAX_CLIENTS];
for (new i = 1; i <= MaxClients; i++)
if ((i != from) && IsClientInGame(i) && ((IsPlayerAlive(i) && dead) || (tsay && (GetClientTeam(i) != team))) &&
(at || ((g_iAdmVision & 2) && IsFakeClient(i)) || ((g_iAdmVision & 1) && ((GetUserFlagBits(i) & g_iAdmFlags) == g_iAdmFlags))))
cl[ncl++] = i;
if (ncl)
{
new Handle:ma = CreateArray(MAX_BUFF_SM,3);
SetArrayCell(ma,0,from);
SetArrayCell(ma,1,ncl);
SetArrayArray(ma,2,cl,ncl);
// if (!at) PushArrayString(ma, "\x04[AV]\x01 %s1");
do PushArrayString(ma,message);
while (BfReadString(bf,message,sizeof(message)) > 0);
CreateTimer(0.1,SendMsg,ma);
}
}
return Plugin_Continue;
}
Please help