Raised This Month: $51 Target: $400
 12% 

Help with this segfault


Post New Thread Reply   
 
Thread Tools Display Modes
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 07-12-2011 , 13:01   Re: Help with this segfault
Reply With Quote #11

if(use a ExecuteHam(Ham_TraceAttack ...)) ?
Could be a invalid attacker in ExecuteHam.
else
invalid ent in get_pdata_cbase (?.

Am I wrong?

Sorry for my English use a translator.
__________________

Last edited by Destro-; 07-12-2011 at 13:06.
Destro- is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 07-12-2011 , 14:12   Re: Help with this segfault
Reply With Quote #12

Quote:
Originally Posted by Destro- View Post
if(use a ExecuteHam(Ham_TraceAttack ...)) ?
Could be a invalid attacker in ExecuteHam.
else
invalid ent in get_pdata_cbase (?.

Am I wrong?

Sorry for my English use a translator.
Since I first check if player is connected and alive, I highly doubt so.
01101101 is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 07-12-2011 , 14:33   Re: Help with this segfault
Reply With Quote #13

trial
PHP Code:
if (victim == attacker || !is_cache_valid_alive(attacker) || pev_valid(attacker) != 2)
    return 
HAM_IGNORED
__________________
Destro- is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 07-12-2011 , 14:58   Re: Help with this segfault
Reply With Quote #14

whats is_cache_valid_alive
01101101 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-12-2011 , 15:11   Re: Help with this segfault
Reply With Quote #15

Probably is_user_alive cached (on spawn, killed/disconnected event), though not really needed here. pev_valid() != 2 ( == pdata safe is worth to try )
__________________
Arkshine is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 07-12-2011 , 15:25   Re: Help with this segfault
Reply With Quote #16

Quote:
Originally Posted by Arkshine View Post
Probably is_user_alive cached (on spawn, killed/disconnected event), though not really needed here. pev_valid() != 2 ( == pdata safe is worth to try )
I was actually trying out pdata safe. Although I doubt it is the problem, ill try and post results.
01101101 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 08:50.


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