02.04.2015, 20:59
You were using integer operations on strings, you can't compare strings that way.
You are checking 2 integer values (BODY_PART_TORSO and BODY_PART_HEAD) against a string-type variable (bodypart), which btw is empty as you just declared it but you didn't put anything inside it.
As for the bodypart parameter, you need to upgrade your server to 0.3z.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
pawn Код:
new bodypart[128];
if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD)
As for the bodypart parameter, you need to upgrade your server to 0.3z.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage