PHP Code:
new pCvar
public plugin_init()
{
pCvar = register_cvar("sample_cvar", "1")
...
...
if(get_pcvar_num(pCvar) == 1)
..echo 1
else
..echo 0
}
From the above snippet I'm always getting pCvar value to be 1 while in amxx.cfg its written: sample_cvar 0
I have tried getting the value using get_cvar_num() and in different places like plugin_cfg() but the result is same. What am I missing here ?