get_pcvar_float() and ColorChat.
hello, i'm trying to display first 2 numbers of a float in chat, but i don t know how, i tried what i found on google but none of the works.
this is my code PHP Code:
Code:
[JoiNET] You can only use Camera View in the first 0.00 seconds of every round! |
Re: get_pcvar_float() and ColorChat.
get_pcvar_num
:arrow: get_pcvar_float And also remove CamResetTime = 15.0 You must not set a value for CamResetTime since it's a cvar pointer. |
Re: get_pcvar_float() and ColorChat.
ColorChat(index, "your value is %d", floatround(get_pcvar_float(g_iCvarVariable))) ;
floatround(15.0) -> returns 15 floatround(15.5) -> returns 16 Hope i'd helped you! |
Re: get_pcvar_float() and ColorChat.
i used london idea, thanks you all!
|
| All times are GMT -4. The time now is 14:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.