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: function heading differs from prototype. (
/showthread.php?tid=591243)
... -
StackedPizza - 09.10.2015
_removed_
Re: function heading differs from prototype. -
Crayder - 09.10.2015
Make sure all of your includes are up to date. They must be the latest version.
AW: function heading differs from prototype. -
Kaliber - 09.10.2015
Update your a_samp include...or go in it and search the forward
Re: function heading differs from prototype. -
Abagail - 09.10.2015
A common cause of this is the YSI library by ****** which hooks some functions(including OnPlayerGiveDamage & OnPlayerTakeDamage).
That being said, if you are using YSI 3.0 you will need to either remove YSI or download 4.0 or above which match the current syntax(or you could alter the include manually, though updating it is a better approach).
https://sampforum.blast.hk/showthread.php?tid=570884
Re: AW: function heading differs from prototype. -
Crayder - 10.10.2015
Quote:
Originally Posted by Kaliber
Update your a_samp include...or go in it and search the forward
|
NEVER suggest going into a SA-MP include and changing things just because it's out of date. You should always keep your includes up to date period. There are many other things that were added since 0.3x (which he would have to have since this function was updated in 0.3z).
Regarding Abagail's suggestion: It may also be an include hooking the function, as Abagail said. As I said above, keep your includes up to date.
AW: Re: AW: function heading differs from prototype. -
Kaliber - 10.10.2015
Quote:
Originally Posted by Crayder
NEVER suggest going into a SA-MP include and changing things just because it's out of date.
|
Omg you dont say..
i meant sth else..for example there is:
PHP код:
forward OnPlayerDeath(playerid, reason);
//and you just have
OnPlayerDeath(playerid)
//You can make them match...
Just edit it in the gamemode..not the include
Re: function heading differs from prototype. -
StackedPizza - 10.10.2015
~removed.~
... -
StackedPizza - 10.10.2015
_removed_