What method is more efficient to get the value of rate?
Is it more efficient to get the value of rate with query_client_cvar( id) or by get_user_info(id, "rate" ?
|
Re: What method is more efficient to get the value of rate?
rate is a client cvar, not an info string. So, only query_client_cvar will work
|
Re: What method is more efficient to get the value of rate?
rate is also in setinfo string, so get_user_info seems better as it has no delay.
Code:
] setinfo |
Re: What method is more efficient to get the value of rate?
sweet thanks.
to follow up on trying to find the most resource/efficient way. what would in turn be more efficient. getting the value on public client_infochanged(id) or with an repeated set_task? ps. is public client_infochanged(id) fired twice or only once everytime something gets changed? |
Re: What method is more efficient to get the value of rate?
infochanged should be called on rate changes, but you should check it ;)
You ask questions, but you would have better to check by yourself ;) |
Re: What method is more efficient to get the value of rate?
ai, true it is because Ive tested before but would like to get input.
ta, think I know what to do now. |
Re: What method is more efficient to get the value of rate?
You can know everybody's "rate" if you set sv_minrate and sv_maxrate (if they are not equal then you know their rate will be in between the two values).
|
Re: What method is more efficient to get the value of rate?
yeah ive wondered about that actually working or not.
I set them along the side but never saw it changing my client rate setting. is it for the server to have an rate allowed to range betweenn the two values? |
Re: What method is more efficient to get the value of rate?
It's working.
|
Re: What method is more efficient to get the value of rate?
Quote:
|
| All times are GMT -4. The time now is 06:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.