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:
enum
{
WEAPON_NONE = 0,
WEAPON_OPENER,
WEAPON_AXE,
WEAPON_BOWIEKNIFE,
WEAPON_SAW,
WEAPON_COUNT
};
new const Float:cstDamageMultiplier[ WEAPON_COUNT ] =
{
1.0,
1.5,
2.0,
1.7,
2.5
}
new g_Weapon[ MAX_PLAYERS + 1 ] = WEAPON_NONE;
__________________