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

Solved [REQUEST][Half-Life] Severian's Mod Run time error 10: native error (native"set_pev")


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tiltedShrimp
Member
Join Date: Feb 2024
Old 02-29-2024 , 12:07   [REQUEST][Half-Life] Severian's Mod Run time error 10: native error (native"set_pev")
Reply With Quote #1

Hello,
so I've noticed that server's CMD sometime pushes this error related to Severian's Mod plugin:

https://i.imgur.com/ASoV2BF.png

I'd really appreciate if someone could help me rectifying the error...

Thank you !

EDIT: I found out that the error comes up as soon as the beam of a newly placed tripmine appears in game. Maybe that will help someone in pinpointing the issue if they decide to help me out here.
Attached Thumbnails
Click image for larger version

Name:	sev.amxx error.png
Views:	29
Size:	25.0 KB
ID:	203491  
Attached Files
File Type: sma Get Plugin or Get Source (sev.sma - 44 views - 28.6 KB)

Last edited by tiltedShrimp; 03-07-2024 at 15:16. Reason: further explanation
tiltedShrimp is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 02-29-2024 , 15:41   Re: [REQUEST][HL] Severian's Mod Run time error 10: native error (native "set_pev")
Reply With Quote #2

try

Code:
public TripMine_Beam(tripmine) {
    if( !pev_valid(tripmine) )
        return FMRES_IGNORED
        if(!get_pcvar_num(g_pcvar_tripmine_style))         return FMRES_IGNORED         new player = pev(tripmine, pev_iuser4)     new beam = get_pdata_cbase(tripmine, m_pBeam, 5)         if(player)     {         set_pev(beam, pev_body, 30)         set_pev(tripmine, pev_dmg, 225.0) // 150% damage     }     else         set_pev(beam, pev_body, 2)     set_pev(beam, pev_renderamt, 100.0)     set_pev(beam, pev_scale, 10.0)     TripMine_Think_Post(tripmine)         return FMRES_IGNORED }
__________________
mlibre is offline
tiltedShrimp
Member
Join Date: Feb 2024
Old 02-29-2024 , 17:42   Re: [REQUEST][HL] Severian's Mod Run time error 10: native error (native "set_pev")
Reply With Quote #3

Quote:
Originally Posted by mlibre View Post
try

Code:
public TripMine_Beam(tripmine) {
    if( !pev_valid(tripmine) )
        return FMRES_IGNORED
        if(!get_pcvar_num(g_pcvar_tripmine_style))         return FMRES_IGNORED         new player = pev(tripmine, pev_iuser4)     new beam = get_pdata_cbase(tripmine, m_pBeam, 5)         if(player)     {         set_pev(beam, pev_body, 30)         set_pev(tripmine, pev_dmg, 225.0) // 150% damage     }     else         set_pev(beam, pev_body, 2)     set_pev(beam, pev_renderamt, 100.0)     set_pev(beam, pev_scale, 10.0)     TripMine_Think_Post(tripmine)         return FMRES_IGNORED }
Hey !

I really appreciate your help, I've changed the part of code to the one that you've provided, but unfortunately the same issue still persists :/
tiltedShrimp is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-29-2024 , 17:50   Re: [REQUEST][HL] Severian's Mod Run time error 10: native error (native "set_pev")
Reply With Quote #4

Try
Code:
public TripMine_Beam(tripmine) {     if( !pev_valid(tripmine))         return FMRES_IGNORED         if(!get_pcvar_num(g_pcvar_tripmine_style))         return FMRES_IGNORED         new player = pev(tripmine, pev_iuser4)     new beam = get_pdata_cbase(tripmine, m_pBeam, 5)    
    if( !pev_valid(beam))
        return FMRES_IGNORED
            if(player)     {         set_pev(beam, pev_body, 30)         set_pev(tripmine, pev_dmg, 225.0) // 150% damage     }     else     {         set_pev(beam, pev_body, 2)     }         set_pev(beam, pev_renderamt, 100.0)     set_pev(beam, pev_scale, 10.0)         TripMine_Think_Post(tripmine)         return FMRES_IGNORED }
__________________

Last edited by Bugsy; 02-29-2024 at 17:50.
Bugsy is offline
tiltedShrimp
Member
Join Date: Feb 2024
Old 02-29-2024 , 18:12   Re: [REQUEST][HL] Severian's Mod Run time error 10: native error (native "set_pev")
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
Try
Code:
public TripMine_Beam(tripmine) {     if( !pev_valid(tripmine))         return FMRES_IGNORED         if(!get_pcvar_num(g_pcvar_tripmine_style))         return FMRES_IGNORED         new player = pev(tripmine, pev_iuser4)     new beam = get_pdata_cbase(tripmine, m_pBeam, 5)    
    if( !pev_valid(beam))
        return FMRES_IGNORED
            if(player)     {         set_pev(beam, pev_body, 30)         set_pev(tripmine, pev_dmg, 225.0) // 150% damage     }     else     {         set_pev(beam, pev_body, 2)     }         set_pev(beam, pev_renderamt, 100.0)     set_pev(beam, pev_scale, 10.0)         TripMine_Think_Post(tripmine)         return FMRES_IGNORED }
Worked like a charm, thank you so much good people !
I really feel like I owe you something for your time spent guys, where I could send a few bucks a a gesture of my appreciation?

Last edited by tiltedShrimp; 02-29-2024 at 18:13.
tiltedShrimp 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 10:17.


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