Quote:
Originally Posted by iLearner
I guess after (issuerid != INVALID_PLAYER_ID you need && and not ||
Also your error isn't visible post it here.
|
The errors marked in red label, you can see it it's on sublime text editor, and I did an arrow in the line.
Quote:
Originally Posted by iLearner
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid >= 22 && weaponid <=38 && bodypart == 7 || bodypart == 8)
{
if(pLegBroken[playerid] == false)
{
pLegBroken[playerid] = true;
ApplyAnimation(playerid, "PED", "CLIMB_jump2fall", 4.1, 1, 0, 0, 1, 0);
SendClientMessage(playerid, COLOR_LIGHTRED, "-> You've been hit in the leg, you're going to struggle with running and jumping.");
}
}
|
Still the same errors by somehow.