float mismatch, wut
PHP Code:
|
Re: float mismatch, wut
If you use a tagged enum in an array, it will be considered as a data structure.
SetHamParamFloat() expects a Float. It means, if you do that : cstDamageMultiplier[ g_Weapon[ iAttacker ] ] ; the output tag won't be from cstDamageMultiplier but from the member of the "structure" g_Weapon[ iAttacker ]. And WEAPON_* has no tag. That's why the compiler is crying. You can solve by avoiding the use of tagged enum with an array : Code:
|
Re: float mismatch, wut
Thanks for the explanation, it works well.
|
| All times are GMT -4. The time now is 08:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.