SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/04/2015, 01:36 AM   #1
KingPersona
Big Clucker
 
KingPersona's Avatar
 
Join Date: Apr 2014
Location: SA:MP
Posts: 189
Reputation: 2
Flowers [HELP] error 025: function heading differs from prototype

hello

i have problem , when i add include ""ShowInfoForplayer"" , i get error in this :
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
full code
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
Code:
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;
}
KingPersona is offline   Reply With Quote
Old 05/04/2015, 02:18 AM   #2
SequenceCuz
Big Clucker
 
Join Date: Apr 2013
Posts: 106
Reputation: 3
Default Re: [HELP] error 025: function heading differs from prototype

did you just insert include like #include <OPSP>

or did you forward the public??
__________________
No Place For You To Hide, And Don't Be Shy So Be Smiled
__________________
SequenceCuz is offline   Reply With Quote
Old 05/04/2015, 11:35 AM   #3
KingPersona
Big Clucker
 
KingPersona's Avatar
 
Join Date: Apr 2014
Location: SA:MP
Posts: 189
Reputation: 2
Default Re : Re: [HELP] error 025: function heading differs from prototype

Quote:
Originally Posted by SequenceCuz View Post
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>
KingPersona is offline   Reply With Quote
Old 05/04/2015, 11:41 AM   #4
Shaktimaan
Big Clucker
 
Shaktimaan's Avatar
 
Join Date: Oct 2014
Location: On Earth, I guess..
Posts: 99
Reputation: 16
Default Re: [HELP] error 025: function heading differs from prototype

What is bodypart?
Shaktimaan is offline   Reply With Quote
Old 05/04/2015, 11:44 AM   #5
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,835
Reputation: 114
Default Re: [HELP] error 025: function heading differs from prototype

The bodypart that was hit. http://wiki.sa-mp.com/wiki/Body_Parts
OT: You can just use GameTextForPlayer.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 025: function heading differs from prototype vincee Scripting Help 8 25/03/2015 01:03 PM
[Ajuda] error 025: function heading differs from prototype adilon PortuguÍs/Portuguese 9 20/01/2015 09:37 PM
error 025: function heading differs from prototype Slicebook Scripting Help 11 14/07/2014 02:12 PM
error 025: function heading differs from prototype! NEED HELP. LuckyPlaya` Scripting Help 2 22/01/2013 07:01 PM
error 025: function heading differs from prototype Beastlynoob Scripting Help 3 09/04/2012 12:15 PM


All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.