Raised This Month: $ Target: $400
 0% 

Solved Ent has null Private Data | Array not being read


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 14:13   Re: Ent has null Private Data | Array not being read
Reply With Quote #6

Quote:
Originally Posted by KliPPy View Post
No, that's EngFunc_CreateEntity.
@OP, debug every line of your code and check runtime errors. You may be having issues with weapon_glock like in one of your previous topics IIRC.
But I'm on my phone atm so I can't check the code thoroughly, just guessing.
Thanks, I always forget that it should be weapon_glock18, also that should fix the 2nd problem too, since there's nothing wrong with the method I'm using to retrieve the data from array. I'll let you know when I test.

Quote:
Originally Posted by Ghosted View Post
Code:
 WeaponEntity = create_entity( eData[ Weapon_Name ] ); 
         
        if( pev_valid( WeaponEntity ) != 2 ) 
        { 
            remove_entity( WeaponBoxEntity ); 
        } 

        ExecuteHamB( Ham_Spawn, WeaponEntity );
I don't think that's safe. You have to call m_pfnThink on weaponbox entities to properly remove them, remove_entity creates a memory leak.

Furthermore, HamletEagle didn't remove the weaponbox here and that surely has a reason behind.
__________________

Last edited by edon1337; 08-05-2018 at 14:14.
edon1337 is offline
 



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 12:12.


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