[HELP] error 025: function heading differs from prototype
#1

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;
}
Reply
#2

did you just insert include like #include <OPSP>

or did you forward the public??
Reply
#3

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>
Reply
#4

What is bodypart?
Reply
#5

The bodypart that was hit. https://sampwiki.blast.hk/wiki/Body_Parts
OT: You can just use GameTextForPlayer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)