Quote:
Originally Posted by lost13
Приветствую. Что тут не так? Не работает вооообще
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){ new msg[20], Float:health; GetPlayerHealth(playerid, health); format(msg,sizeof(msg),"%d, %f",bodypart, health); AMessage(msg,clRed); switch(bodypart){ case 9: return SetPlayerHealth(playerid, health-=100); // Голова case 3: return SetPlayerHealth(playerid, health-=50); // Тело case 5: return SetPlayerHealth(playerid, health-=10); // Левая рука case 6: return SetPlayerHealth(playerid, health-=10); // Правая рука case 7: return SetPlayerHealth(playerid, health-=20); // Левая нога case 8: return SetPlayerHealth(playerid, health-=20); // Правая нога case 4: return SetPlayerHealth(playerid, health-=30);} // Пах return 0;}
|
Попробуйте убрать знаки
равно:
Код:
case 9: return SetPlayerHealth(playerid, health-=100); // Голова