I made a PCVar, and then when I try to get it's value, it always returns 0.
When I retrieve it as a stirng, it returns the modelname of something else I have in my plugin.
PHP Code:
public plugin_init()
{
register_plugin( "Jailbreak Shop", "1.0", "H3avY Ra1n" );
gpKatanaCost = register_cvar( "jb_katana_cost", "45000" );
server_print( "The cost is %i.", get_pcvar_num( gpKatanaCost ) );
}
It always prints "The cost is 0" in console. NO IDEA why.
I never set the cvar to the modelname.
__________________