Raised This Month: $ Target: $400
 0% 

reading client cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BloodyNuker
Member
Join Date: Jan 2006
Old 12-22-2006 , 18:04   reading client cvars
Reply With Quote #1

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
BloodyNuker is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-22-2006 , 18:55   Re: reading client cvars
Reply With Quote #2

http://sourceforge.net/projects/metamod-p

also, output of meta list and meta version in the server console.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
BloodyNuker
Member
Join Date: Jan 2006
Old 12-23-2006 , 17:14   Re: reading client cvars
Reply With Quote #3

OKīs....

When put meta list he says:
Code:
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.76b    ini   ANY   ANY  
 [ 2] Fun              RUN   -    fun_amxx.dll      v1.76     pl1   ANY   ANY  
 [ 3] CStrike          RUN   -    cstrike_amxx.dll  v1.76     pl1   ANY   ANY  
 [ 4] CSX              RUN   -    csx_amxx.dll      v
and when put meta vercion...

Code:
meta version
Metamod v1.19p28  2006/03/04 (5:13)
by Will Day
   http://www.metamod.org/
 Patch: Metamod-P (mm-p) v28
 by Jussi Kivilinna
    http://metamod-p.sourceforge.net/
compiled: Mar  1 2006, 16:50:15 EET (optimized)
BloodyNuker is offline
XP.
Junior Member
Join Date: Feb 2006
Old 12-23-2006 , 21:25   Re: reading client cvars
Reply With Quote #4

I have same problem :/
XP. is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 12-26-2006 , 18:05   Re: reading client cvars
Reply With Quote #5

Update HLDS.
__________________
FatalisDK is offline
BloodyNuker
Member
Join Date: Jan 2006
Old 01-07-2007 , 20:44   Re: reading client cvars
Reply With Quote #6

Thankz, but the problem is AMX, the AMX MOD X V 1.70 Work perfect, Vercionīs > AMX MOD X 1.70, donīt Work with Query function in my dedicated server.

Please show the AMX upp to 1.7, Why donīt Work with Query function.

Cyas
BloodyNuker is offline
James
Senior Member
Join Date: Dec 2004
Old 08-18-2007 , 13:33   Re: reading client cvars
Reply With Quote #7

I add this to BUG system.. http://bugs.alliedmods.net/?do=details&task_id=820
__________________
Do good things, and good things happen to you
James is offline
Old 08-18-2007, 14:31
Lee
This message has been deleted by Lee.
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 22:26.


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