For declaring a String variable which you're going to assign a value right away you should use
decl instead of
new. It's better for optimization. Also, you don't have it equal to anything, simply put the buffer size in [].
For switches you need to use {} after the colon otherwise it won't work.
And, for assigning strings, you need to use
strcopy, you can't just have it equal to something as simple as that. :p Within the
strcopy you need to specify the buffer size, as well.
So it would be something like this:
PHP Code:
decl String:bodyPart[16];
switch(hit_area)
{
case 1:{ strcopy(bodyPart, sizeof(bodyPart), "Head");} //"sizeof(bodyPart)" is 16, ofc
case 2:{ strcopy(bodyPart, sizeof(bodyPart), "Chest");}
case 3:{ strcopy(bodyPart, sizeof(bodyPart), "Stomach");}
case 4:{ strcopy(bodyPart, sizeof(bodyPart), "Left Arm");}
case 5:{ strcopy(bodyPart, sizeof(bodyPart), "Right Arm");}
case 6:{ strcopy(bodyPart, sizeof(bodyPart), "Left Leg");}
case 7:{ strcopy(bodyPart, sizeof(bodyPart), "Right Leg");}
default:{ strcopy(bodyPart, sizeof(bodyPart), "Unknown");}
}