Raised This Month: $ Target: $400
 0% 

Run time error 10: native error (native "pev")


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-31-2008 , 05:04   Run time error 10: native error (native "pev")
Reply With Quote #1

Maybe someone can correct this code? Please?
Frostnade by avalanche.
[FAKEMETA] Invalid entity
[AMXX] Displaying debug trace (plugin "frostnades.amxx")
[AMXX] Run time error 10: native error (native "pev")
[AMXX] [0] frostnades.sma::ham_grenade_think (line 505)

P.S. Writes a lot of this errors in log.

Last edited by xbatista; 07-05-2009 at 09:31.
xbatista is offline
Send a message via Skype™ to xbatista
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 12-31-2008 , 13:35   Re: Run time error 10: native error (native "pev")
Reply With Quote #2

Add after
Code:
// grenade is ticking away
public ham_grenade_think(ent)
{
this
Code:
    if(!pev_valid(ent)) return FMRES_IGNORED;
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-31-2008 , 13:43   Re: Run time error 10: native error (native "pev")
Reply With Quote #3

Strange that an entity can be not valid in a hamsandwich forward.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-31-2008 , 15:25   Re: Run time error 10: native error (native "pev")
Reply With Quote #4

Quote:
Add after
Code:
// grenade is ticking away
public ham_grenade_think(ent)
{
this
Code:
if(!pev_valid(ent)) return FMRES_IGNORED;
So what I must do then connor? :/
xbatista is offline
Send a message via Skype™ to xbatista
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 12-31-2008 , 15:25   Re: Run time error 10: native error (native "pev")
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Strange that an entity can be not valid in a hamsandwich forward.
Strange? No! My code is like this
Code:
    RegisterHam(Ham_Think, "grenade", "fw_ThinkGrenade")
and
PHP Code:
public fw_ThinkGrenade(entity)
{    
    if(!
pev_valid(entity))
        return 
HAM_IGNORED
        
    
static Float:dmgtime    
    pev
(entitypev_dmgtimedmgtime)
    
    if (
dmgtime get_gametime())
        return 
HAM_IGNORED    
    
    
if(pev(entitypev_flTimeStepSound) == NADE_TYPE_ANTIDOTEBOMB)
        
antidote_explode(entity)
    
    return 
HAM_SUPERCEDE

Looks ok, but... I getting same error logs. I must add again
Code:
    if(!pev_valid(entity))
        return HAM_IGNORED
after
Code:
    if (dmgtime > get_gametime())
        return HAM_IGNORED
. Now will be ok.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-31-2008 , 15:27   Re: Run time error 10: native error (native "pev")
Reply With Quote #6

So what I must do?
xbatista is offline
Send a message via Skype™ to xbatista
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 12-31-2008 , 15:27   Re: Run time error 10: native error (native "pev")
Reply With Quote #7

Quote:
Originally Posted by Sn!ff3r View Post
Add after
Code:
// grenade is ticking away
public ham_grenade_think(ent)
{
this
Code:
    if(!pev_valid(ent)) return FMRES_IGNORED;
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-31-2008 , 15:28   Re: Run time error 10: native error (native "pev")
Reply With Quote #8

OK thx! Will try this out.
xbatista is offline
Send a message via Skype™ to xbatista
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-31-2008 , 15:31   Re: Run time error 10: native error (native "pev")
Reply With Quote #9

And I forget to say.
Happy New Year dudes!!!.
Ok I'm going to drunk. Bye.
xbatista is offline
Send a message via Skype™ to xbatista
Reply


Thread Tools
Display Modes

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 09:07.


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