Raised This Month: $32 Target: $400
 8% 

Plugin sending errors in console.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yuv41
Member
Join Date: Jan 2020
Old 02-07-2020 , 15:12   Plugin sending errors in console.
Reply With Quote #1

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
yuv41 is offline
yuv41
Member
Join Date: Jan 2020
Old 02-07-2020 , 20:24   Re: Plugin sending errors in console.
Reply With Quote #2

Nevermind i fixed it
yuv41 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-08-2020 , 12:48   Re: Plugin sending errors in console.
Reply With Quote #3

Quote:
Originally Posted by yuv41 View Post
Nevermind i fixed it
Can you fix so your thread/posts are 100% straight with the AlliedModders Rules too ?

Quote:
Do not blank out posts. Additionally, if you solve your problem post the solution for others to find.
Thanks in advance.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode