01.05.2015, 08:36
Hi all,
Im trying to build an anti teamkill system,
public OnPlayerGiveDamage(playerid, killerid, Float: amount, weaponid, bodypart)
{
if(PlayerInfo[killerid][gangid] == PlayerInfo[playerid][gangid])
{
SendClientMessage(playerid,COLORE_ROSSO, "Anti Teamkill:Stop shoot your gang members!");
}
return 1;
}
I have add killerid => https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage ,and i got this "error error 025: function heading differs from prototype", how i can resove it? without remove "killerid"?
Im trying to build an anti teamkill system,
public OnPlayerGiveDamage(playerid, killerid, Float: amount, weaponid, bodypart)
{
if(PlayerInfo[killerid][gangid] == PlayerInfo[playerid][gangid])
{
SendClientMessage(playerid,COLORE_ROSSO, "Anti Teamkill:Stop shoot your gang members!");
}
return 1;
}
I have add killerid => https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage ,and i got this "error error 025: function heading differs from prototype", how i can resove it? without remove "killerid"?