17.04.2015, 18:05
(1817) : error 025: function heading differs from prototype
(1827) : error 025: function heading differs from prototype
(1827) : error 025: function heading differs from prototype
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) //1817
{
if(issuerid != INVALID_PLAYER_ID)
{
if(GetPVarInt(playerid, "aFly") == 1) return 1;
PlayerPlaySound(issuerid, 17802, 0, 0, 0);
}
return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) //1827
{
if(GetPVarInt(damagedid, "AdminDuty" ) == 1 && gPlayerInfo[playerid][pAlevel] < 1)
GameTextForPlayer(playerid, "~r~DON'T SHOOT ADMINS ON DUTY!", 10000, 6);
if(gPlayerInfo[playerid][pTeam] == gPlayerInfo[damagedid][pTeam] && !IsPlayerInAnyVehicle(playerid) && gPlayerInfo[playerid][pAlevel]< 1)
GameTextForPlayer(playerid, "~r~Don't shoot your team mates!", 900, 6);
return 1;
}