get_user_info does not work for all vars?
Hey guys,
There's something crazy with the command get_user_info I don't understand. get_user_info(pid, "name", name, 31) <- works get_user_info(id, "fps_max", fps, 31) <- does not work This is the Command to give the info to the client : Code:
console_print(id,"[Fps-check] %s (%s) hat maximal %s(fps_max) bzw %s(fps_modem)",name,authid,fps,modem)The name is okay but fps does not work. So I wrote 2 classes to check fps and modem. But the code is quite 8 times long as the one with get_user_info :( Code:
static abfrager |
Re: get_user_info does not work for all vars?
You have to use query_client_cvar.
Type setinfo in your game console and you will see al avaible setinfos. |
Re: get_user_info does not work for all vars?
Ah okay.
And how can I compare fps with modem and then return only the higher value into my output? ( I'm going to try it myself) btw somebody should change this then.. http://www.amxmodx.org/funcwiki.php?go=func&id=18 Quote:
|
Re: get_user_info does not work for all vars?
|
Re: get_user_info does not work for all vars?
This would kill any developer 1 but I only want to force fps < 300 because the fps at 336 for example is very high
http://members.chello.at/hawkin/CS/Measured.PNG |
| All times are GMT -4. The time now is 01:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.