Raised This Month: $ Target: $400
 0% 

run time error because of nativa cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mihaiveress
Member
Join Date: Jan 2009
Location: Tirgu-Mures , Romania
Old 03-01-2009 , 07:51   run time error because of nativa cvar
Reply With Quote #1

this is the error that the servers shows on startrup
Code:
L 03/01/2009 - 14:40:37: Invalid CVAR pointer
L 03/01/2009 - 14:40:37: [AMXX] Displaying debug trace (plugin "antirusherfinal.
amxx")
L 03/01/2009 - 14:40:37: [AMXX] Run time error 10: native error (native "get_pcv
ar_num")
L 03/01/2009 - 14:40:37: [AMXX]    [0] antirusherfinal.sma::client_putinserver (
line 213)
i really don't know why because I read on a tutorial about cvars that is better to use get_pcvar and set_pcvar instead of get_cvar... and set_cvar...

so can you help me plz?
this is the plugin_putinserver part , if you need the entire code please tell me

PHP Code:
public client_putinserver(id){         //tu informacja o rashu
    
new arg[1]             //Zoptymalizowane uzycie set_task
    
arg[0]=id            //Deklaracja 1 kumurki pamieci zamiast 4 i bez zmian z str-> num i na odwrot
    
g_punish[id][0] = // Number of Punishes?
    
g_punish[id][1] = 1800 // Timeleft at last punish        
    
if (map_cors_pre && get_pcvar_num(cvar_antirusher))
        
set_task(45.0,"informclient",TASK_INFO+id,arg,1
        


Last edited by mihaiveress; 03-01-2009 at 07:51. Reason: spelling
mihaiveress is offline
Send a message via Yahoo to mihaiveress Send a message via Skype™ to mihaiveress
 


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 17:03.


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