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] = 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)
}