(17) error 001: expected token: ")", but found "}" (17) error 029: invalid expression, assumed zero (17 -- 18) warning 215: expression has no effect (18) error 001: expected token: ";", but found "else" (18) fatal error 107: too many error messages on one line
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) { SetPlayerHealth(playerid, 0.0); } if(bodypart == 7) { if(IsPlayerInAnyVehicle(playerid)) { // CODE ? } else { ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1); } } if(bodypart == 8) { if(IsPlayerInAnyVehicle(playerid)) { // CODE ? } else { ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1); } } return 1; }
if(IsPlayerInAnyVehicle(playerid))
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) { SetPlayerHealth(playerid, 0.0); } if(bodypart == 7) { if(IsPlayerInAnyVehicle(playerid)) { // CODE ? } else { ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1); } } if(bodypart == 8) { if(IsPlayerInAnyVehicle(playerid)) { // CODE ? } else { ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1); } } return 1; } |