SA-MP Forums Archive
HELP ME error 025: function heading differs from prototype - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP ME error 025: function heading differs from prototype (/showthread.php?tid=615860)



HELP ME error 025: function heading differs from prototype - charlibobo - 28.08.2016

./includes/gvr.pwn(105651) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: HELP ME error 025: function heading differs from prototype - Micko123 - 28.08.2016

gimme the line


Re: HELP ME error 025: function heading differs from prototype - charlibobo - 28.08.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
gimme the line
Can you be more specific?


Re: HELP ME error 025: function heading differs from prototype - Mister0 - 28.08.2016

ctrl+g type the line number: 105651 enter and copy the code around that line


Re: HELP ME error 025: function heading differs from prototype - charlibobo - 28.08.2016

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
.
Here u are


Re: HELP ME error 025: function heading differs from prototype - charlibobo - 28.08.2016

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


Re: HELP ME error 025: function heading differs from prototype - SyS - 28.08.2016

update your a_samp and ysi.


Re: HELP ME error 025: function heading differs from prototype - charlibobo - 28.08.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
update your a_samp and ysi.
Can u give me a link?