Code:
g_custom_text[32] = register_cvar("sa_custom_text","")
This is wrong. register_cvar always returns an integer and it's a cvar pointer to a cvar, which you can use to get_pcvar.
Along with that
Code:
get_pcvar_string(g_custom_text[32], g_custom_text, 32)
This is wrong. First of all the first argument is a cvar pointer you got from registering a cvar, in your case this throws an error.
Also length should be sizeof - 1 ( In your case 31, or just use charsmax(buffer) )
This native returns a number of cells written to a buffer, so keep that in mind.
__________________