Raised This Month: $ Target: $400
 0% 

[HELP] Error compile climber zombie


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-30-2016 , 03:48   Re: [HELP] Error compile climber zombie
Reply With Quote #2

You create more public's with the same name.

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage// if take damage drag off 

    if (
is_user_alive(attacker) && (get_pcvar_num(cvar_dmg2stop) > 0)) 
    { 
        
g_ovr_dmg[victim] = g_ovr_dmg[victim] + floatround(damage
        if (
g_ovr_dmg[victim] >= get_pcvar_num(cvar_dmg2stop)) 
        { 
            
g_ovr_dmg[victim] = 
            g_WallClimb
[victim
            return 
HAM_IGNORED
        } 
    } 

    return 
HAM_IGNORED

+

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage// if take damage drag off 

    if (!
is_user_connected(attacker) || victim == attacker || !attacker
        return 
HAM_IGNORED
     
    while (
g_damagedealt[attacker] > get_pcvar_num(cvar_dmg2stop)) 
    { 
        
g_can_climb[victim] = false 
        g_damagedealt
[attacker] -= get_pcvar_num(cvar_dmg2stop
    } 

    
g_damagedealt[attacker] += floatround(damage
         
    return 
HAM_IGNORED

The same for fwd_playerprethink, i gave you the solution for problem,now resolve itself.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
 



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 09:29.


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