function heading differs from prototype.
#1

_removed_
Reply
#2

Make sure all of your includes are up to date. They must be the latest version.
Reply
#3

Update your a_samp include...or go in it and search the forward
Reply
#4

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

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.
Reply
#6

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(playeridreason);
//and you just have
OnPlayerDeath(playerid)
//You can make them match... 
Just edit it in the gamemode..not the include
Reply
#7

~removed.~
Reply
#8

_removed_
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)