I'm trying to set 'x' damage to some weapons, something that I thought that it would be easy, but i don't know why the damage doesn't change.
This is the code:
PHP Code:
new Float:g_damage[ ] =
{
2.0,
3.0,
4.0
};
//on takedamage forward
for( new i = 0; i < THE_WEAPONS; i++ )
{
if( !g_Weapons[ attacker ][ i ] )
continue;
damage *= g_damage[ i ]
}
SetHamParamFloat( 4, damage );
I check with a print if i was getting correctly the values of the damage and it does, but the damage doesn't set.
I think this may have a really stupid solution because i think i'm forgetting something
__________________