AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   csdm_misc error (https://forums.alliedmods.net/showthread.php?t=232157)

d3L 12-26-2013 12:22

csdm_misc error
 
1 Attachment(s)
Hi, I got this error:

Code:

FAKEMETA] Invalid entity
L 12/26/2013 - 18:11:10: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx")
L 12/26/2013 - 18:11:10: [AMXX] Run time error 10: native error (native "pev")
L 12/26/2013 - 18:11:10: [AMXX]    [0] csdm_misc.sma::OnEntSpawn (line 90)

Can someone take a look at the sma and try to fix it ?
Thanks.

wTf. 12-26-2013 14:00

Re: csdm_misc error
 
Hmmm.... i'm not sure... but...

PHP Code:

pev(entpev_classnameclassname31

->

PHP Code:

pev(entpev_classnamesizeof classname 1


d3L 12-26-2013 14:13

Re: csdm_misc error
 
I googled a few minutes and I found this http://www.amxmodx.lt/viewtopic.php?f=21&t=3493
I modified like that guy said but nothing.. i can't compile it for different reasons/errors... you think that guy is right?

d3L 12-27-2013 10:28

Re: csdm_misc error
 
not working...

wTf. 12-27-2013 12:33

Re: csdm_misc error
 
Ok, you try this: http://www.amxmodx.lt/viewtopic.php?p=19893#p19893

PHP Code:

public OnEntSpawn(ent)
{
    if (
g_MapStripFlags MAPSTRIP_HOSTAGE)
    {
        new 
classname[32]
        
        
pev(entpev_classnameclassname31)
        
        if (
equal(classname"hostage_entity"))
        {
            
engfunc(EngFunc_RemoveEntityent)
            return 
FMRES_SUPERCEDE
        
}
    }
    
    return 
FMRES_IGNORED


->

PHP Code:

public OnEntSpawn(ent)
{
    if (
g_MapStripFlags MAPSTRIP_HOSTAGE && pev_valid(ent))
    {
        new 
classname[32]
        
        
pev(entpev_classnameclassname31)
        
        if (
equal(classname"hostage_entity"))
        {
            
engfunc(EngFunc_RemoveEntityent)
            return 
FMRES_SUPERCEDE
        
}
    }
    
    return 
FMRES_IGNORED



d3L 12-27-2013 15:22

Re: csdm_misc error
 
thanks dude, test it right now :) i'll tell you soon if it works :D


All times are GMT -4. The time now is 20:43.

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