15.10.2014, 11:16
Quote:
How to fix errors?
Код:
error 025: function heading differs from prototype Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { if(GetPlayerTeam(playerid) == TEAM_INFECTED){SetPlayerTeam(damagedid,TEAM_INFECTED),SpawnPlayer(damagedid),SendClientMessage(playerid,COLOR_RED,#Infected. Spread the infection to the living.),infected[playerid] = true;} return 1; } public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid,bodypart) { new Float:health; GetPlayerHealth(playerid,health); if(bodypart == 9) {SetPlayerHealth(playerid, health-40);} // If takes damage to the head region else{SetPlayerHealth(playerid, health-25);} // If anywhere other than the head region return 1; } |