Quote:
Originally Posted by Bugsy
From a psuedo-code perspective it looks fine, you are retrieving the cvar pointer from an existing cvar at plugin_init() and using it in your menu callback. Is it not working? Did you debug at all by console/server printing the get_pcvar_num() return value?
|
No it wasnt working then but i made it work as i registered this cvar as initial value 0 and then used get_pcvar_num
Code:
public plugin_init()
{
cvar_race= register_cvat ("fl_on","0")
}
and then used
if(get_pcvar_num(cvar_race)==1)
{
//statements
}
thank you for your help..