View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-03-2012 , 05:17   Re: Team Balancer by Low Frags v2.0 [+CSDM support]
Reply With Quote #20

Quote:
Originally Posted by Arkshine View Post
Use pcvar. It's a requirement.
I'm confused

What exactly do you mean with use pcvar?
When you wrote this message, my plugin didn't have any console variable. It just used iMyNum = get_cvar_num( "csdm_enabled" ).

So, what exactly should I understand? I don't have to use get_cvar_num( "" ) and I should use hMyHandle = get_cvar_pointer( "" ) then iMyNum = get_pcvar_num( hMyHandle )?

Now I added a few console variables if this was required. But I'm still confused about this.

Now I'm using:

PHP Code:
new hMyHandle get_cvar_pointer"" );
if( 
hMyHandle )
  new 
iMyNum get_pcvar_numhMyHandle ); 
But I really want to use this instead:

PHP Code:
new iMyNum get_cvar_num"csdm_enabled" ); 
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks