Raised This Month: $ Target: $400
 0% 

native error @ plugin_precache


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-10-2009 , 11:00   native error @ plugin_precache
Reply With Quote #1

Quote:
Originally Posted by Server
L 01/10/2009 - 17:47:03: Invalid CVAR pointer
L 01/10/2009 - 17:47:03: [AMXX] Displaying debug trace (plugin "EgdeBugStats.amxx")
L 01/10/2009 - 17:47:03: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/10/2009 - 17:47:03: [AMXX] [0] EgdeBugStats.sma::plugin_precache (line 134)
PHP Code:
// [..]
new gCvar_Sounds;

public 
plugin_precache()
    
gCvar_Sounds        register_cvar("kz_eb_sounds",        "1");

public 
plugin_precache() {
    
gBeamSprite precache_model("sprites/dot.spr");
    
    if( 
get_pcvar_num(gCvar_Sounds) ) {    // line 134.
        
precache_sound("misc/mod_godlike.wav");
        
precache_sound("misc/mod_wickedsick.wav");
        
precache_sound("misc/mod_perfect.wav");
        
precache_sound("misc/mod_impressive.wav");
        
precache_sound("misc/double.wav");
        
precache_sound("misc/triple.wav");
    }

howto fix?
__________________
xPaw is offline
 



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 01:55.


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