View Single Post
Author Message
!Morte
Veteran Member
Join Date: May 2010
Old 05-22-2015 , 19:02   Setting damage to weapons doesn't work
Reply With Quote #1

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 0THE_WEAPONSi++ )
    {
        if( !
g_Weaponsattacker ][ ] )
            continue;
            
        
damage *= g_damage]
    }
    
    
SetHamParamFloat4damage ); 
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
__________________
First Zombie Class
[ZP] Zombie Class: Houndeye Zombie
Quote:
Originally Posted by lucas_7_94 View Post
tenes que saber pawn antes de intentar hacer algo digno.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte