[HELP] 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] error 025: function heading differs from prototype (
/showthread.php?tid=570057)
[HELP] error 025: function heading differs from prototype -
KingPersona - 05.04.2015
hello
i have problem , when i add include ""ShowInfoForplayer"" , i get error in this :
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
full code
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
ShotTimes[issuerid]++;
if(issuerid != INVALID_PLAYER_ID && bodypart == 9)
{
foreach(Player, g)
{
if(playerVariables[g][pSpectating] == issuerid)
{
new stringa[80];
format(stringa, sizeof(stringa), "[!] %s has made damage to %s by a headshot. [!]", GetName(issuerid),GetName(playerid));
SCM(g, COLOR_FRED, stringa);
}
}
}
if(DamageON[issuerid] == 1)
{
format(szMessage, sizeof(szMessage), "+~y~%.0f ~w~ damage (x %i)", amount, ShotTimes[issuerid]);
TextDrawShowForPlayer(issuerid, DamageTD[issuerid]);
TextDrawSetString(DamageTD[issuerid], szMessage);
DamageTime[issuerid] = 5;
}
......
when i remove it , i dont get error, why i want add this include? because i want add this anti spawn kill
Код:
forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
SetPlayerHealth(playerid, 100.0);
//SendClientMessage(playerid, COLOR_LIGHT, "(( AdmBot says: anti-spawn kill protection is over, you are on your own now. ))");
ShowInfoForPlayer(playerid, "~r~You have spawn kill protection is over!", 2000);
return 1;
}
Re: [HELP] error 025: function heading differs from prototype -
SequenceCuz - 05.04.2015
did you just insert include like #include <OPSP>
or did you forward the public??
Re : Re: [HELP] error 025: function heading differs from prototype -
KingPersona - 05.04.2015
Quote:
Originally Posted by SequenceCuz
did you just insert include like #include <OPSP>
or did you forward the public??
|
no i don't have this include , i have include in name <OPA>
Re: [HELP] error 025: function heading differs from prototype -
Shaktimaan - 05.04.2015
What is bodypart?
Re: [HELP] error 025: function heading differs from prototype -
CalvinC - 05.04.2015
The bodypart that was hit.
https://sampwiki.blast.hk/wiki/Body_Parts
OT: You can just use GameTextForPlayer.