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

GenEntDataVector errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ozrich
AlliedModders Donor
Join Date: Oct 2015
Old 10-10-2019 , 06:07   GenEntDataVector errors
Reply With Quote #1

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: [SMBlaminginsurgency.smx
L 10
/09/2019 16:26:21: [SMCall stack trace:
L 10/09/2019 16:26:21: [SM]   [0GetEntDataVector
L 10
/09/2019 16:26:21: [SM]   [1Line 849D:\Libraries\Insurgency Development\Servers\Checkpoint Development\Sourcemod\WIP\scripting\insurgency.sp::Native_ObjectiveResource_GetPropVector
L 10
/09/2019 16:26:21: [SM]   [3Ins_ObjectiveResource_GetPropVector
L 10
/09/2019 16:26:21: [SM]   [4Line 1671D:\Libraries\OneDrive\Gaming\Insurgency Development\Sourcemod\WIP\scripting\ozrespawn4.4.sp::Timer_CheckEnemyStatic
L 10
/09/2019 16:26:22: [SMException reportedOffset -1 is invalid 
The function for insurgency.sp is:"

PHP Code:
public Native_ObjectiveResource_GetPropVector(Handle:pluginnumParams) {
    new 
len;
    
GetNativeStringLength(1len);
    if (
len <= 0) {
      return 
false;
    }
    new 
String:prop[len+1];
    new 
size 12// Size of data slice - 3x4-byte floats
    
GetNativeString(1proplen+1);
    new 
element GetNativeCell(3);
    
GetEntity_ObjectiveResource();
    new 
Float:result[3];
    if (
g_iObjResEntity 0) {
        
GetEntDataVector(g_iObjResEntityFindSendPropInfo(g_iObjResEntityNetClassprop) + (size element), result);
        
SetNativeArray(2result3);
    }
    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.
Attached Files
File Type: sp Get Plugin or Get Source (ozrespawn4.4.sp - 55 views - 205.1 KB)
File Type: sp Get Plugin or Get Source (insurgency.sp - 61 views - 61.1 KB)
__________________

Last edited by ozrich; 10-10-2019 at 06:16.
ozrich 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 06:05.


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