Raised This Month: $ Target: $400
 0% 

Trouble on Getting a Client Cvar?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
musaulker
Junior Member
Join Date: Oct 2007
Old 10-15-2007 , 17:42   Re: Trouble on Getting a Client Cvar?
Reply With Quote #1

I'm trying it on my local computer and local server and connecting locally to my server also developing it on the same computer everything is local..

From a friend advice i try function get_user_name:
PHP Code:
public client_putinserver(id)
{
    new 
rate[32]
    
get_user_info(id"rate"rate31
    new 
name[32];
    
get_user_name(idname31);
    
log_amx("Client %d(%s)'s %s is %s"idname"rate"rate)

and on the log its written like:

PHP Code:
L 10/16/2007 00:34:04: [test.amxxClient 1(Player)'s rate is 7000 
but i try this one:

PHP Code:
public client_putinserver(id)
{
    new 
zoom_sensitivity_ratio[32]
    
get_user_info(id"zoom_sensitivity_ratio"zoom_sensitivity_ratio31
    new 
name[32];
    
get_user_name(idname31);
    
log_amx("Client %d(%s)'s %s is %s"idname"zoom_sensitivity_ratio"zoom_sensitivity_ratio)

and the log is:
PHP Code:
L 10/16/2007 00:37:04: [test.amxxClient 1(Player)'s zoom_sensitivity_ratio is 
Now whats the problem?
musaulker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode