Raised This Month: $49 Target: $400
 12% 

Solved [AMXX] Run time error 10: native error (native "engfunc")


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AMATERASU78
New Member
Join Date: Jul 2021
Old 08-19-2021 , 01:04   [AMXX] Run time error 10: native error (native "engfunc")
Reply With Quote #1

Dear, Alliedmodders im getting one runtime error ten in a plugin.. I hope if you can help me to solve it

Error:

PHP Code:
L 08/19/2021 00:49:19: [AMXXDisplaying debug trace (plugin "dripper.amxx"version "1.0")
L 08/19/2021 00:49:19: [AMXXRun time error 10native error (native "engfunc")
L 08/19/2021 00:49:19: [AMXX]    [0dripper_fix.sma::fm_addtofullpack_post (line 362)
L 08/19/2021 00:49:19: [FAKEMETAInvalid entity 
Code:
PHP Code:
public fm_addtofullpack_post(eseuserhosthost_flagsplayerp_set)
{
    if(!
player)
        return 
FMRES_IGNORED
        
    
if(!is_user_connected(host) || !is_user_alive(user))
        return 
FMRES_IGNORED
        
    
if(!zp_get_user_zombie(user) || !zp_get_user_nemesis(user) || headshot_korban[user] != 1)
        return 
FMRES_IGNORED
        
    
if(host == user)
        return 
FMRES_IGNORED
    
    
new Float:PlayerOrigin[3], Float:anglesss[3]
    
pev(userpev_originPlayerOrigin)
    
    
engfunc(EngFunc_GetBonePositionuser8PlayerOriginanglesss)
                        
    
engfunc(EngFunc_SetOriginguillotine_korban[user], PlayerOrigin)
    
engfunc(EngFunc_SetOriginguillotine_korban[user], PlayerOrigin)

    return 
FMRES_HANDLED


Last edited by AMATERASU78; 08-19-2021 at 01:08.
AMATERASU78 is offline
AMATERASU78
New Member
Join Date: Jul 2021
Old 08-19-2021 , 01:07   Re: [AMXX] Run time error 10: native error (native "engfunc")
Reply With Quote #2

Quote:
Originally Posted by AMATERASU78 View Post
Dear, Alliedmodders im getting one runtime error ten in a plugin.. I hope if you can help me to solve it

Error:

PHP Code:
L 08/19/2021 00:49:19: [AMXXDisplaying debug trace (plugin "dripper.amxx"version "1.0")
L 08/19/2021 00:49:19: [AMXXRun time error 10native error (native "engfunc")
L 08/19/2021 00:49:19: [AMXX]    [0dripper_fix.sma::fm_addtofullpack_post (line 362)
L 08/19/2021 00:49:19: [FAKEMETAInvalid entity 
Code:
PHP Code:
public fm_addtofullpack_post(eseuserhosthost_flagsplayerp_set)
{
    if(!
player)
        return 
FMRES_IGNORED
        
    
if(!is_user_connected(host) || !is_user_alive(user))
        return 
FMRES_IGNORED
        
    
if(!zp_get_user_zombie(user) || !zp_get_user_nemesis(user) || headshot_korban[user] != 1)
        return 
FMRES_IGNORED
        
    
if(host == user)
        return 
FMRES_IGNORED
    
    
new Float:PlayerOrigin[3], Float:anglesss[3]
    
pev(userpev_originPlayerOrigin)
    
    
engfunc(EngFunc_GetBonePositionuser8PlayerOriginanglesss)
                        
    
engfunc(EngFunc_SetOriginguillotine_korban[user], PlayerOrigin)
    
engfunc(EngFunc_SetOriginguillotine_korban[user], PlayerOrigin)

    return 
FMRES_HANDLED

Nvm, I guess i have found it..

Last edited by AMATERASU78; 08-19-2021 at 01:09.
AMATERASU78 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-19-2021 , 01:31   Re: [AMXX] Run time error 10: native error (native "engfunc")
Reply With Quote #3

Why are you using fm_addtofullpack_post when you can use player think forward, better yet you can use a task with 0.1 seconds
__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-19-2021 at 01:33.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
AMATERASU78
New Member
Join Date: Jul 2021
Old 09-06-2021 , 10:35   Re: [AMXX] Run time error 10: native error (native "engfunc")
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
Why are you using fm_addtofullpack_post when you can use player think forward, better yet you can use a task with 0.1 seconds
Thanks..
AMATERASU78 is offline
Reply


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 18:26.


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