Raised This Month: $ Target: $400
 0% 

Error with semiclip plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 08-04-2011 , 19:11   Error with semiclip plugin
Reply With Quote #1

I'm using ConnorMcLeod's semiclip plugin but it gives errors. The error logs get so big that they take a lot of time to load.
Here is the error:
Code:
L 08/04/2011 - 23:00:00: [ENGINE] Invalid player 20 (not in-game)
L 08/04/2011 - 23:00:00: [AMXX] Displaying debug trace (plugin "mdb_bhop.amxx")
L 08/04/2011 - 23:00:00: [AMXX] Run time error 10: native error (native "entity_range")
L 08/04/2011 - 23:00:00: [AMXX]    [0] bunnyhop.sma::FM_client_AddToFullPack_Post (line 1743)
L 08/04/2011 - 23:00:00: [ENGINE] Invalid player 20 (not in-game)
L 08/04/2011 - 23:00:00: [AMXX] Displaying debug trace (plugin "mdb_bhop.amxx")
L 08/04/2011 - 23:00:00: [AMXX] Run time error 10: native error (native "entity_range")
L 08/04/2011 - 23:00:00: [AMXX]    [0] bunnyhop.sma::FM_client_AddToFullPack_Post (line 1743)
L 08/04/2011 - 23:00:00: [ENGINE] Invalid player 20 (not in-game)
L 08/04/2011 - 23:00:00: [AMXX] Displaying debug trace (plugin "mdb_bhop.amxx")
L 08/04/2011 - 23:00:00: [AMXX] Run time error 10: native error (native "entity_range")
L 08/04/2011 - 23:00:00: [AMXX]    [0] bunnyhop.sma::FM_client_AddToFullPack_Post (line 1743)
L 08/04/2011 - 23:00:00: [ENGINE] Invalid player 20 (not in-game)
L 08/04/2011 - 23:00:00: [AMXX] Displaying debug trace (plugin "mdb_bhop.amxx")
L 08/04/2011 - 23:00:00: [AMXX] Run time error 10: native error (native "entity_range")
L 08/04/2011 - 23:00:00: [AMXX]    [0] bunnyhop.sma::FM_client_AddToFullPack_Post (line 1743)
L 08/04/2011 - 23:00:00: [ENGINE] Invalid player 20 (not in-game)
L 08/04/2011 - 23:00:00: [AMXX] Displaying debug trace (plugin "mdb_bhop.amxx")
L 08/04/2011 - 23:00:00: [AMXX] Run time error 10: native error (native "entity_range")
L 08/04/2011 - 23:00:00: [AMXX]    [0] bunnyhop.sma::FM_client_AddToFullPack_Post (line 1743)
And so on. It prints over 100 lines a second for about 4 seconds and happens again after an hour or so. I'm using it on a KZ server that is always 31/32 during the day.

Here is the code:
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

const MAX_PLAYERS 32

new g_iPlayers[MAX_PLAYERS], g_iNumg_iPlayeri
new const g_szAliveFlags[] = "a"
#define RefreshPlayersList()    get_players(g_iPlayers, g_iNum, g_szAliveFlags)

public plugin_init()
{
    
register_forward(FM_AddToFullPack"FM_client_AddToFullPack_Post"1)
    
RegisterHam(Ham_Player_PreThink"player""Ham_CBasePlayer_PreThink_Post"1)
}

public 
FM_client_AddToFullPack_Post(eseiEntidhostflagsplayerpSet)
{
    if( 
player && id != iEnt && get_orig_retval() && is_user_alive(id) )
    {
        
set_es(esES_SolidSOLID_NOT)

        static 
Float:flDistance
        flDistance 
entity_range(idiEnt//THIS LINE GIVES THE ERROR
        
if( flDistance 512.0 )
        {
            
set_es(esES_RenderModekRenderTransAlpha)
            
set_es(esES_RenderAmtfloatround(flDistance)/2)
        }
    }
}

public 
Ham_CBasePlayer_PreThink_Post(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
id != g_iPlayer )
        {
            
set_pev(g_iPlayerpev_solidSOLID_NOT)
        }
    }
}

public 
client_PostThink(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
g_iPlayer != id )
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
        }
    }

Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
 



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 03:20.


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