I am using the following:
PHP Code:
new mycvar;
public plugin_init() {
mycvar = register_cvar("amx_mycvar", "1");
/*some code here*/
if(get_cvar_num("mycvar") == 1) /*or should i put "amx_mycvar" instead of "mycvar" ?*/
MyFunction();
}
public MyFunction() {
/*some code here*/
}
And when compiling i get:
Code:
warning 204: symbol is assigned a value that is never used: "amx_mycvar"
It compiles successfully but i am getting the warning
Am i doing something wrong?