Cvar is doing strange, getting 104872688 as value, set with 0.75 (float)
This is part of my first plugin OverKill.
Problem: cvar is fucking up, getting either always 0, or gigatons of a value. Using get_pcvar_num/float/string/..(amx_ok_perc), and then turning it into the type I want, always returns 0. Hardcoding the value, (wich is still in the uploaded version), I get a gigaton value like 104872688. I know I am putting some floats in some int's, I changed it so the compiler was quite happy about it. Tried with using correct types aswell, hence warnings... Any comments? |
Re: Cvar is doing strange, getting 104872688 as value, set with 0.75 (float)
1) use get_pcvar_float for float cvars
2) its "Float:" and not "float:" |
Re: Cvar is doing strange, getting 104872688 as value, set with 0.75 (float)
You can change these:
PHP Code:
PHP Code:
Code:
//one line comment |
All times are GMT -4. The time now is 22:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.