Raised This Month: $ Target: $400
 0% 

[SOLVED] get_pcvar_num native error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 08-24-2013 , 11:22   [SOLVED] get_pcvar_num native error
Reply With Quote #1

Hi guys,

i don't know what is the problem

but, show this error in console

Code:
L 08/24/2013 - 18:18:38: [AMXX]    [0] xpmod.sma::show_explevel (line 269)
L 08/24/2013 - 18:18:38: Invalid CVAR pointer
L 08/24/2013 - 18:18:38: [AMXX] Displaying debug trace (plugin "xpmod.amxx")
L 08/24/2013 - 18:18:38: [AMXX] Run time error 10: native error (native "get_pcvar_num")
this code:

PHP Code:
public show_explevel(id){
    if(!
is_user_alive(id)){
        return 
PLUGIN_HANDLED;
    }
    
    new 
ly[33],ey[33],as[33],show[33];
    as[
id] = get_pcvar_num(xpm_start) + (seviye[id] * get_pcvar_num(xpm_inc));
    
ly[id] = seviye[id] * 100 get_pcvar_num(xpm_maxlevel) ;
    
ey[id] = exp[id] * 100 / as[id];
    
    
set_hudmessage255000.020.2006.03.00.11.5 );
    
ShowSyncHudMsg(idhud_show,"Exp/Level" );
    
set_hudmessage2552552550.020.2306.03.00.11.5 );
    
ShowSyncHudMsg(idhud_info"Level: [%d/%d] - (%s%i) ^nExp: [%i/%i] - (%s%i)",seviye[id],get_pcvar_num(xpm_maxlevel),is,ly[id],exp[id],g_exp(id),is,ey[id],show);
    return 
PLUGIN_HANDLED;

What is the problem?

thnx in advance.
__________________
I wouldn’t marry you even if you were the last woman left on earth

Choose_Your_Destiny is offline
 


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 19:04.


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