AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entities Error (https://forums.alliedmods.net/showthread.php?t=220686)

Jhob94 07-13-2013 08:52

Entities Error
 
1 Attachment(s)
Hi
I saw this plugin in another website.
Well it looks fine but has one error about entities:
Code:

L 07/09/2013 - 22:25:27: [ENGINE] Invalid entity 58
L 07/09/2013 - 22:25:27: [AMXX] Displaying debug trace (plugin "npc_revenant.amxx")
L 07/09/2013 - 22:25:27: [AMXX] Run time error 10: native error (native "entity_set_float")
L 07/09/2013 - 22:25:27: [AMXX]    [0] Untitled.sma::set_entity_anim (line 1907)
L 07/09/2013 - 22:25:27: [AMXX]    [1] Untitled.sma::reset_mahadash (line 866)

Can someone help me? Because sometimes server start lags and reboots...

wickedd 07-13-2013 10:15

Re: Entities Error
 
So why are posting it here? Did you try to fix the errors yourself? If so, post what you have tried.

Jhob94 07-13-2013 10:43

Re: Entities Error
 
I didnt tried to fix it because i have no idea how to fix.
And the author stoped working in plugin since is "old" one

last_hope 11-12-2013 02:32

Re: Entities Error
 
Stupid entity errors happen after amxx update.
Me too have no idea why plugin works fine on old AMX (1.8.1)
Ant same plugin in AMX (1.8.3) return:
[ENGINE] Invalid entity

simanovich 11-12-2013 07:37

Re: Entities Error
 
PHP Code:

stock set_entity_anim(entanim)
{
    
entity_set_float(entEV_FL_animtimeget_gametime())
    
entity_set_float(entEV_FL_framerate1.0)
    
entity_set_float(entEV_FL_frame0.0)
    
entity_set_int(entEV_INT_sequenceanim)    


------->
PHP Code:

stock set_entity_anim(entanim)
{
    if ( 
pev_valid(ent) )
    {
        
entity_set_float(entEV_FL_animtimeget_gametime())
        
entity_set_float(entEV_FL_framerate1.0)
        
entity_set_float(entEV_FL_frame0.0)
        
entity_set_int(entEV_INT_sequenceanim)
    }    



Kia 11-12-2013 09:34

Re: Entities Error
 
Try using the fixed version.

baneado 11-12-2013 16:10

Re: Entities Error
 
https://forums.alliedmods.net/showthread.php?t=229401

last_hope 11-13-2013 02:11

Re: Entities Error
 
Quote:

Originally Posted by simanovich (Post 2059944)
PHP Code:

stock set_entity_anim(entanim)
{
    
entity_set_float(entEV_FL_animtimeget_gametime())
    
entity_set_float(entEV_FL_framerate1.0)
    
entity_set_float(entEV_FL_frame0.0)
    
entity_set_int(entEV_INT_sequenceanim)    


------->
PHP Code:

stock set_entity_anim(entanim)
{
    if ( 
pev_valid(ent) )
    {
        
entity_set_float(entEV_FL_animtimeget_gametime())
        
entity_set_float(entEV_FL_framerate1.0)
        
entity_set_float(entEV_FL_frame0.0)
        
entity_set_int(entEV_INT_sequenceanim)
    }    



And animation will never played...

Backstabnoob 11-13-2013 09:42

Re: Entities Error
 
Quote:

Originally Posted by last_hope (Post 2060219)
And animation will never played...

What? Do what he said. It might not solve the issue but still worth a try, I believe engine throws a specific error on incorrect entity.

simanovich 11-13-2013 10:28

Re: Entities Error
 
Quote:

Originally Posted by last_hope (Post 2060219)
And animation will never played...

It will play, of course if the entity is vaild


All times are GMT -4. The time now is 06:31.

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