HELP ME error 025: function heading differs from prototype
#6

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:HP;
if(issuerid != INVALID_PLAYER_ID && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
PlayAudioStreamForPlayer(playerid, "http://gvr-rp.sytes.com/Headshot_BL.mp3");// play music for who killed.
PlayAudioStreamForPlayer(issuerid, "http://gvr-rp.sytes.com/Headshot_BL.mp3");// play music for killer.
SetPlayerHealth(playerid, 0.0);//kill player
GameTextForPlayer(playerid, "~r~Head shot!", 3000, 6);
GameTextForPlayer(issuerid, "~r~Head shot!", 3000, 6);
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-45.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-45.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-45.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-35.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-40.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-40.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 32 || weaponid == 31 || weaponid == 30 || weaponid == 29 || weaponid == 28 || weaponid == 27 || weaponid == 26 || weaponid == 25 || weaponid == 24 || weaponid == 23 || weaponid == 22) && bodypart == 0)//check if the shooter shoot in sniper and check if shoot in head
{
SetPlayerHealth(playerid, 0.0);//kill player
}
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33))//check if the shooter shoot in sniper and check if shoot in head
{
SetPlayerHealth(playerid, 0.0);
}
if(GetPVarInt(playerid, "commitSuicide") == 1)
{
SetPVarInt(playerid, "commitSuicide", 0);
}

similar a few lines around it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)