Need help in my headshot system project
#8

Quote:
Originally Posted by ivndosos
Посмотреть сообщение
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)  
{ 
   if (issuerid != INVALID_PLAYER_ID) { 
   if (weaponid == 33 || weaponid == 34 || weaponid == 33 || weaponid == 34) { 
   if (bodypart == 9)  
   { 
       new playerName[MAX_PLAYER_NAME]; 
       GetPlayerName(playerid, playerName, sizeof(playerName);
       SetPlayerHealth(playerid, 0.0); 
       GameTextForPlayer(issuerid,"~r~Headshot",2000,3); 
       PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0); 
       GameTextForPlayer(playerid,"~r~Headshot",2000,3); 
       PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0); 
       new message[80]; 
       format(message, sizeof(message), "{FF7700}%s has been killed in a Headshot by %s {FF7700}", playerName, otherID); 
       SendClientMessageToAll(COLOR_ORANGE, message); 
       } 
     } 
  } 
  return 1; 
}
and add this at the top

#define COLOR_ORANGE 0xFF4500AA
PHP код:
C:\Users\hp\Desktop\Headshot.pwn(32) : error 017undefined symbol "playerName"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

??
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)