Raised This Month: $ Target: $400
 0% 

My game crash it when i hit a player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nax0ne
Senior Member
Join Date: Jul 2011
Location: Chile
Old 05-01-2016 , 17:40   My game crash it when i hit a player
Reply With Quote #1

My problem is when i hit a player, my game crash it and I discovered that the problem comes from these two forwards:

PHP Code:
public ham_TakeDamage_PreiVictimiInflictoriAttackerFloat:flDamageiBits )
{
    if ( !
is_user_aliveiAttacker ) )
        return 
HAM_IGNORED;
        
    static 
Float:flPlayerDmgPower;
    
flPlayerDmgPower flDamage g_flDamagePoweriAttacker ];
    
    if ( 
get_user_weaponiAttacker ) == CSW_KNIFE )
        
SetHamParamFloat4g_bPlayerIsZombieiAttacker ] ? random_float4.08.0 ) : 2.0 flPlayerDmgPower ); 
        
    if ( !
g_bPlayerIsZombieiAttacker ] && iBits & ( << 24 ) )    
    {
        if( 
iAttacker == iVictim ) return HAM_IGNORED;
        
        
SetHamParamFloat43.0 flPlayerDmgPower );
        return 
HAM_HANDLED;
    }
    
    if ( !
g_bPlayerIsZombieiAttacker ] )    
        
SetHamParamFloat4flPlayerDmgPower );    
    
    return 
HAM_IGNORED;

PHP Code:
public ham_TakeDamage_PostiVictimiInflictoriAttackerFloat:flDamageiBits )
{
    if ( !
is_user_aliveiAttacker ) )
        return 
HAM_IGNORED;    
    
    if ( 
g_bPlayerIsZombieiVictim ] )    
        
set_pdata_floatiVictim1080.9 );
    else
        
set_pdata_floatiVictim1081.0 );
    
    return 
HAM_IGNORED;

Something I doing wrong in those codes? I don't get it.
__________________

Last edited by Nax0ne; 05-01-2016 at 17:41.
Nax0ne is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode