Raised This Month: $ Target: $400
 0% 

Native error: pev


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-02-2009 , 17:40   Native error: pev
Reply With Quote #1

Hello
I'm getting some errors at this line:
PHP Code:
public fw_thinkent )
{
    if( 
get_pcvar_numtoggle_plugin ) != 1)
        return 
FMRES_IGNORED;
        
    static 
classname32 ];
    
peventpev_classnamesizeof classname );
    
    
// this line
    
if( !strcmpclassname"hostage_entity" ) )
        return 
FMRES_IGNORED
I tried with equal but the same result.

Errors:
Code:
L 01/03/2009 - 00:38:32: [FAKEMETA] Invalid return type
L 01/03/2009 - 00:38:32: [AMXX] Displaying debug trace (plugin "test.amxx")
L 01/03/2009 - 00:38:32: [AMXX] Run time error 10: native error (native "pev")
L 01/03/2009 - 00:38:32: [AMXX]    [0] test.sma::fw_think (line 152)
L 01/03/2009 - 00:38:32: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchThink()
__________________

anakin_cstrike is offline
Old 01-02-2009, 17:51
danielkza
This message has been deleted by danielkza. Reason: nvmind
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-02-2009 , 17:52   Re: Native error: pev
Reply With Quote #2

PHP Code:
peventpev_classnamesizeof classname ); 

PHP Code:
peventpev_classnameclassnamesizeof classname ); 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 01-02-2009 , 18:22   Re: Native error: pev
Reply With Quote #3

Does anakin_cstrike have amnesia?
Styles is offline
Send a message via AIM to Styles
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-03-2009 , 05:19   Re: Native error: pev
Reply With Quote #4

Opsss
I'd been in amnesia when i posted that ^^
Thanks...
__________________

anakin_cstrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2009 , 05:46   Re: Native error: pev
Reply With Quote #5

Also, don't forget to check if the ent is valid ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-03-2009 , 08:21   Re: Native error: pev
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Also, don't forget to check if the ent is valid ;)
Yeah.
__________________

anakin_cstrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2009 , 08:25   Re: Native error: pev
Reply With Quote #7

Or use RegisterHam(Ham_Think, "hostage_entity", "Hostage_Think")

Then, no need to check if pev is valid, and no need to check classname.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-03-2009 , 09:32   Re: Native error: pev
Reply With Quote #8

I know that.
I tried that way but it prints me the message twice, don't sure why...the code was exactly like in a fm forward. However...
Also, about check classname, i did that.

Thanks for advices
__________________

anakin_cstrike 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 09:14.


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