they work a lot faster than normal get_cvar_* functions because they use pointers (I'm guessing, I know a little bit of C++ and I think I see why using pointers would help here, anyway...). You have to register them to a global variable (unless your only using it once). Heres some example code...
Code:
//i like to make it the same name as the actual cvar
new sv_my_cvar
public plugin_init()
{
sv_my_cvar = register_cvar("sv_my_cvar","0")
}
my_function()
{
client_print(0, print_chat, "wow, my cvar = %d", get_pcvar_num(sv_my_cvar))
}
*note that there is no set_pcvar_string
}