From a psuedo-code perspective it looks fine, you are retrieving the cvar pointer from an existing cvar at plugin_cfg() 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?