Raised This Month: $ Target: $400
 0% 

Unhandled dynamic native error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 22:43.


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