Hi Folks,
This is for Insurgency.
I have two plugins. One (Jballou library) insurgency.smx and my own (built on his and daimyo81) called ozrespawn4.4 (a medic and respawn - amongst other things plugin).
I'm getting errors blaming insurgency.smx and spamming my logs.
The error is :
PHP Code:
L 10/09/2019 - 16:26:21: [SM] Blaming: insurgency.smx
L 10/09/2019 - 16:26:21: [SM] Call stack trace:
L 10/09/2019 - 16:26:21: [SM] [0] GetEntDataVector
L 10/09/2019 - 16:26:21: [SM] [1] Line 849, D:\Libraries\Insurgency Development\Servers\Checkpoint Development\Sourcemod\WIP\scripting\insurgency.sp::Native_ObjectiveResource_GetPropVector
L 10/09/2019 - 16:26:21: [SM] [3] Ins_ObjectiveResource_GetPropVector
L 10/09/2019 - 16:26:21: [SM] [4] Line 1671, D:\Libraries\OneDrive\Gaming\Insurgency Development\Sourcemod\WIP\scripting\ozrespawn4.4.sp::Timer_CheckEnemyStatic
L 10/09/2019 - 16:26:22: [SM] Exception reported: Offset -1 is invalid
The function for insurgency.sp is:"
PHP Code:
public Native_ObjectiveResource_GetPropVector(Handle:plugin, numParams) {
new len;
GetNativeStringLength(1, len);
if (len <= 0) {
return false;
}
new String:prop[len+1];
new size = 12; // Size of data slice - 3x4-byte floats
GetNativeString(1, prop, len+1);
new element = GetNativeCell(3);
GetEntity_ObjectiveResource();
new Float:result[3];
if (g_iObjResEntity > 0) {
GetEntDataVector(g_iObjResEntity, FindSendPropInfo(g_iObjResEntityNetClass, prop) + (size * element), result);
SetNativeArray(2, result, 3);
}
return 1;
}
The function in my respawn plugin is too large to post here, so I've attached it instead. Look on line 1671 in the Timer_CheckEnemyStatic function. This function checks enemies stuck.
Any help would be greatly appreciated.