PHP Code:
/* not important, just so you see how the enum is created */
enum Weapons
{
WEAPON_NONE = 0,
WEAPON_OPENER,
WEAPON_AXE,
WEAPON_BOWIEKNIFE,
WEAPON_SAW
}
new const Float: cstDamageMultiplier[ Weapons ] =
{
1.0,
1.5,
2.0,
1.7,
2.5
}
/* not important, just so you see how the variable is initialized */
new Weapons: g_Weapon[ MAX_PLAYERS + 1 ] = WEAPON_NONE
/* in Ham_TakeDamage */
SetHamParamFloat( 4, cstDamageMultiplier[ g_Weapon[ iAttacker ] ] )
Throws 5 tag mismatches, each one coming from the constant. What's wrong?