im getting this error
Quote:
Invalid CVAR pointer
[AMXX] Displaying debug trace (plugin "dod_wildlife.amxx")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX] [0] dod_wildlife.sma::client_putinserver (line 94)
|
and heres that part of the code:
Code:
new p_dod_wildlife
public plugin_init()
{
register_plugin("DoD Wildlife","1.0","AMXX DoD Team")
p_dod_wildlife = register_cvar("dod_wildlife","1")
}
public client_putinserver(id)
{
if(is_user_connected(id) && get_pcvar_num(p_dod_wildlife) == 1)
{
set_task(120.0,"wildlife_check",id)
}
}
now i even tried copying from another plugin i have that uses the pcvar in the putinserver without any problems, but i still get the error with this one...
any ideas?
*UPDATE*
i removed the pvcar stuff from the putinserver and i still get that error when i calls that pcvar in another spot in the code...
idk.. maybe im an idiot and ive used pcvars plenty of times.. but it seems like im using it right..
__________________