Thread: Getting errors
View Single Post
Author Message
Adomaz1
Senior Member
Join Date: Feb 2014
Old 08-13-2016 , 05:24   Getting errors
Reply With Quote #1

Hello, I'm getting these errors:

Code:
L 08/13/2016 - 12:18:53: [SM] Exception reported: DataPack operation is out of bounds.
L 08/13/2016 - 12:18:53: [SM] Blaming: smac_eac_banlist.smx()
L 08/13/2016 - 12:18:53: [SM] Call stack trace:
L 08/13/2016 - 12:18:53: [SM]   [0] ReadPackString
L 08/13/2016 - 12:18:53: [SM]   [1] Line 149, smac_eac_banlist.sp::OnSocketConnected()
L 08/13/2016 - 12:18:53: [SM] Exception reported: DataPack operation is out of bounds.
L 08/13/2016 - 12:18:53: [SM] Blaming: smac_kac_banlist.smx()
L 08/13/2016 - 12:18:53: [SM] Call stack trace:
L 08/13/2016 - 12:18:53: [SM]   [0] ReadPackString
L 08/13/2016 - 12:18:53: [SM]   [1] Line 143, smac_kac_banlist.sp::OnSocketConnected()
L 08/13/2016 - 12:18:56: [SM] Exception reported: DataPack operation is out of bounds.
L 08/13/2016 - 12:18:56: [SM] Blaming: smac_kac_banlist.smx()
L 08/13/2016 - 12:18:56: [SM] Call stack trace:
L 08/13/2016 - 12:18:56: [SM]   [0] ReadPackString
L 08/13/2016 - 12:18:56: [SM]   [1] Line 143, smac_kac_banlist.sp::OnSocketConnected()
L 08/13/2016 - 12:18:56: [SM] Exception reported: DataPack operation is out of bounds.
L 08/13/2016 - 12:18:56: [SM] Blaming: smac_eac_banlist.smx()
L 08/13/2016 - 12:18:56: [SM] Call stack trace:
L 08/13/2016 - 12:18:56: [SM]   [0] ReadPackString
L 08/13/2016 - 12:18:56: [SM]   [1] Line 149, smac_eac_banlist.sp::OnSocketConnected()
And when I connected I got banned. :/

I'm using 0.8.5.2 version

F.E eac_banlist line 149

Code:
public OnSocketConnected(Handle:socket, any:hPack)
{
	decl String:sAuthID[MAX_AUTHID_LENGTH], String:sRequest[256];
	SetPackPosition(hPack, 8);
	ReadPackString(hPack, sAuthID, sizeof(sAuthID));
	FormatEx(sRequest, sizeof(sRequest), "GET /%s%s HTTP/1.0\r\nHost: %s\r\nConnection: close\r\n\r\n", EAC_QUERY, sAuthID, EAC_HOSTNAME);
	SocketSend(socket, sRequest);
}
Adomaz1 is offline