04.03.2015, 01:49
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 10.0)
{
SetPlayerDrunkLevel(playerid, 5000);
ApplyAnimation(playerid, "PED", "Sweet_injuredloop", 4.1, 1, 1, 1, 1, 1, 1);
}
return 1;
}
That is everything and it ways the error on the first line aka line 22
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 10.0)
{
SetPlayerDrunkLevel(playerid, 5000);
ApplyAnimation(playerid, "PED", "Sweet_injuredloop", 4.1, 1, 1, 1, 1, 1, 1);
}
return 1;
}
That is everything and it ways the error on the first line aka line 22