Raised This Month: $ Target: $400
 0% 

Entities Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 07-13-2013 , 08:52   Entities Error
Reply With Quote #1

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...
Attached Files
File Type: sma Get Plugin or Get Source (npc_revenant.sma - 614 views - 46.8 KB)
__________________

Last edited by Jhob94; 07-13-2013 at 08:54.
Jhob94 is online now
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-13-2013 , 10:15   Re: Entities Error
Reply With Quote #2

So why are posting it here? Did you try to fix the errors yourself? If so, post what you have tried.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 07-13-2013 , 10:43   Re: Entities Error
Reply With Quote #3

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
__________________
Jhob94 is online now
last_hope
Senior Member
Join Date: Dec 2011
Old 11-12-2013 , 02:32   Re: Entities Error
Reply With Quote #4

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
__________________
last_hope is offline
Send a message via ICQ to last_hope
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-12-2013 , 07:37   Re: Entities Error
Reply With Quote #5

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)
    }    

__________________
simanovich is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 11-12-2013 , 09:34   Re: Entities Error
Reply With Quote #6

Try using the fixed version.
__________________
Kia is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-12-2013 , 16:10   Re: Entities Error
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?t=229401
baneado is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 11-13-2013 , 02:11   Re: Entities Error
Reply With Quote #8

Quote:
Originally Posted by simanovich View Post
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...
__________________

Last edited by last_hope; 11-13-2013 at 02:11.
last_hope is offline
Send a message via ICQ to last_hope
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-13-2013 , 09:42   Re: Entities Error
Reply With Quote #9

Quote:
Originally Posted by last_hope View Post
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.

Last edited by Backstabnoob; 11-13-2013 at 09:43.
Backstabnoob is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-13-2013 , 10:28   Re: Entities Error
Reply With Quote #10

Quote:
Originally Posted by last_hope View Post
And animation will never played...
It will play, of course if the entity is vaild
__________________
simanovich is offline
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 06:31.


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