Hello, this is my plugin:
Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>
new Plugin_Author[] = "(?)";
new Plugin_Version[] = "(??)";
new Plugin_Name[] = "(???)"
public plugin_init()
{
register_plugin(Plugin_Name,Plugin_Version,Plugin_Author);
}
public client_putinserver(id)
{
set_task(20.0, "verificacion", id, "b")
}
public verificacion(id)
{
if( !is_user_connected(id) ) { return PLUGIN_HANDLED; }
query_client_cvar(id,"fps_max","resultado")
}
public resultado(id, const cvar[], const value[])
{
new name[32]
get_user_name(id, name, 31)
client_print(id,print_chat,"%s ***", value)
return PLUGIN_CONTINUE
}
But in the chat.. i donīt show the fps_max value set from the players where are coneccting...
I got this error:
Code:
L 12/22/2006 - 18:59:25: Client CVAR querying is not enabled - check MM version!
L 12/22/2006 - 18:59:25: [AMXX] Run time error 10 (plugin "plugin_name.amxx") (native "query_client_cvar") - debug not enabled!
L 12/22/2006 - 18:59:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I put debug after the plugin name in plugins.ini and got this:
Code:
12/22/2006 - 19:06:53: Client CVAR querying is not enabled - check MM version!
L 12/22/2006 - 19:06:53: [AMXX] Displaying debug trace (plugin "plugin_name.amxx")
L 12/22/2006 - 19:06:53: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 12/22/2006 - 19:06:53: [AMXX] [0] textTVGryt.sma::verificacion (line 25)
If any people can help.. Tnkz