Raised This Month: $ Target: $400
 0% 

client "get cvar" not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
firewall
Member
Join Date: Jun 2006
Old 10-07-2006 , 16:12   client "get cvar" not working
Reply With Quote #1

i'm tring to get some of the client cvars but not seem to be working.here is the code :
Code:
  #include <amxmodx>
#include <engine>
#include <amxmisc>

public plugin_init() {

    register_plugin("Cvar Client", "1", "Me")
    }

public client_connect(id)

{

    query_client_cvar(id,"max_shells","result1")
    query_client_cvar(id,"fps_max","result2")
    query_client_cvar(id,"cl_updaterate","result3")
}



public result1(id, const cvar[], const value[]){

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s maxshells is ^"%s^"", id, name, value)
}

public result2(id, const cvar[], const value[]){

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s max fps is ^"%s^"", id, name, value)
}
public result3(id, const cvar[], const value[]){

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s updaterate is ^"%s^"", id, name, value)
}
i do not understand whereis is the problem i do not have anything logged i enable debugging but no errors .

Last edited by firewall; 10-07-2006 at 16:14.
firewall is offline
 



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 04:59.


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