Posts: 7
Threads: 1
Joined: Mar 2016
Reputation:
0
./includes/gvr.pwn(105651) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Posts: 220
Threads: 28
Joined: Aug 2015
Reputation:
0
ctrl+g type the line number: 105651 enter and copy the code around that line
Posts: 7
Threads: 1
Joined: Mar 2016
Reputation:
0
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
.
Here u are
Posts: 7
Threads: 1
Joined: Mar 2016
Reputation:
0
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
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
update your a_samp and ysi.