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 .