query_client_cvar cant read *.000 value
I,m trying to get all players with ( for example ) mp_decals 300.000000
so I did PHP Code:
how to get more digits after zero ? |
Re: query_client_cvar cant read *.000 value
Code:
Also, since you're printing using %.2f you restrict it from printing more than 2 decimals. Use %f. IIRC, str_to_float() is also known to be slightly inaccurate at times. It can sometimes return 0.999~ when the number is in fact 1.0. |
Re: query_client_cvar cant read *.000 value
Don't convert string, directly check the string.
|
Re: query_client_cvar cant read *.000 value
ok. works fine with if(equal(value,"300.000000"))
|
Re: query_client_cvar cant read *.000 value
Isn't mp_decals a server cvar ?
|
Re: query_client_cvar cant read *.000 value
It's a player cvar afaik.
|
| All times are GMT -4. The time now is 15:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.