Raised This Month: $ Target: $400
 0% 

Unhandled dynamic native error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-04-2009 , 09:20   Unhandled dynamic native error
Reply With Quote #1

Help me, I get this kind of error all the time
HTML Code:
L 10/04/2009 - 16:15:20: Unhandled dynamic native error
L 10/04/2009 - 16:15:20: [AMXX] Displaying debug trace (plugin "zclass_cursed.amxx")
L 10/04/2009 - 16:15:20: [AMXX] Run time error 10: native error (native "engfunc")
L 10/04/2009 - 16:15:20: [AMXX]    [0] zclass_cursed.sma::Event_BoomerDeath (line 110)
Here is code part
Code:
public Event_CursedDeath()
{
    //new attacker = read_data(1)
    new victim = read_data(2)
    new Float:radius = get_pcvar_float(cvar_radius)
    
    if (zp_get_user_zombie_class(victim) == g_zclass_cursed)
    {
        if (CanExplode[victim])
        {
            new Float:origin[3]; pev(victim,pev_origin, origin)
        
            new infected = -1
            while((infected = engfunc(EngFunc_FindEntityInSphere, infected, origin, radius)) !=0)
            {
                if (!is_user_alive(infected) ||!is_user_connected(infected))
                    continue
                    
                if (zp_get_user_zombie(infected) || zp_get_user_nemesis(infected))
                    continue
                    
                if (zp_get_user_survivor(infected))
                    continue
                    
                zp_infect_user(infected, victim,0,0)
                //emit_sound(infected, CHAN_WEAPON, "weapons/mortarhit.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
            }
        }
        CanExplode[victim] = false
    }
}
What is wrong with the code?

PS. Can someone tell me why this kind of error is happening?What are the reason of this error?
__________________


Last edited by NiHiLaNTh; 10-04-2009 at 11:30.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-05-2009 , 08:41   Re: Unhandled dynamic native error
Reply With Quote #2

Please, I need your support :/
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-05-2009 , 08:52   Re: Unhandled dynamic native error
Reply With Quote #3

Where is line 110
__________________
xPaw is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-05-2009 , 08:57   Re: Unhandled dynamic native error
Reply With Quote #4

Code:
zp_infect_user(infected, victim,0,0)
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-05-2009 , 09:00   Re: Unhandled dynamic native error
Reply With Quote #5

Next time, do not bump your thread until it has been 2 weeks until last post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
jagged20101
Member
Join Date: Sep 2009
Old 10-06-2009 , 08:33   Re: Unhandled dynamic native error
Reply With Quote #6

That line may be conflicting with another line of code in a different part, not always the exact line that it says is the problem.
jagged20101 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-06-2009 , 10:29   Re: Unhandled dynamic native error
Reply With Quote #7

Hmm, I think it couldn't conflict with another part of the code
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
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 22:43.


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