AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_death error (https://forums.alliedmods.net/showthread.php?t=300052)

Tripaloski 08-03-2017 22:53

client_death error
 
Hello people.
In all the plugins I use the client_death, client_damage, bomb_planted, bomb_explode, bomb_defused,... they stopped working.

What will be the problem?

edon1337 08-04-2017 06:57

Re: client_death error
 
Post the error logs maybe?

Tripaloski 08-04-2017 08:37

Re: client_death error
 
No logging errors.
Simply the part of the plugin client_death, client_damage,... stopped working
Exemple:
PHP Code:

public client_damage(attacker,victim,damage,weapon,hitplace,ta)
{    
    if(
hitplace == HIT_HEAD || hitplace == HIT_CHEST || hitplace == HIT_STOMACH || hitplace == HIT_LEFTARM || hitplace == HIT_RIGHTARM || hitplace == HIT_LEFTLEG || hitplace == HIT_RIGHTLEG)
        
total_dano[attacker] += damage
    
    
if(hitplace == HIT_HEAD)
        
head_hit[attacker] ++
    
    else if(
hitplace == HIT_CHEST)
        
chest_hit[attacker] ++
    
    else if(
hitplace == HIT_STOMACH)
        
stomach_hit[attacker] ++
    
    else if(
hitplace == HIT_LEFTARM)
        
leftarm_hit[attacker] ++
    
    else if(
hitplace == HIT_RIGHTARM)
        
rightarm_hit[attacker] ++
    
    else if(
hitplace == HIT_LEFTLEG)
        
leftleg_hit[attacker] ++
    
    else if(
hitplace == HIT_RIGHTLEG)
        
rightleg_hit[attacker] ++
    return 
0;


PHP Code:

public bomb_plantedplanter )
    
g_iPlantedBombsplanter ]++

public 
bomb_explodeplanterdefuser )
    
g_iBombExplosionsplanter ]++

public 
bomb_defuseddefuser )
    
g_iDefusedBombsdefuser ]++ 


wickedd 08-04-2017 19:15

Re: client_death error
 
You need
PHP Code:

#include < csx > 



All times are GMT -4. The time now is 17:50.

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