Error 21: Symbol already defined "OnPlayerTakeDamage"
#7

Quote:
Originally Posted by Dice_
View Post
PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid

    new 
Float:HP
    
GetPlayerHealth(playeridHP); 
    if(
weaponid == 24SetPlayerHealth(playeridHP-45);//DesertEagle 
    
if(weaponid == 31SetPlayerHealth(playeridHP-30);//M4 
    
if(weaponid == 34SetPlayerHealth(playeridHP-100);//SniperRifle 
    
if(weaponid == 25SetPlayerHealth(playeridHP-60);//PumpShotgun 
    
if(bodypart == BODY_PART_HEAD
    { 
        if(
issuerid == INVALID_PLAYER_ID && playerid == INVALID_PLAYER_ID) return 0
        return 
CallLocalFunction("OnPlayerHeadShot""iif"playeridissueridamount); 
    } 
    return 
1

It gets me the error now.
Code:
C:\Users\harvey\Desktop\Server\filterscripts\Untitled.pwn(476) : error 017: undefined symbol "bodypart"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)