SA-MP Forums Archive
HELP in headshot system - 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 in headshot system (/showthread.php?tid=596965)



HELP in headshot system - VaisH - 25.12.2015

Hello guys......When i compile my headshot system it says

Code:
error 025: function heading differs from prototype



Re: HELP in headshot system - FreAkeD - 25.12.2015

This usually happens when a new sa-mp version comes with new addition of argument to a function, like OnPlayerGiveDamage from 0.3x to 0.3z. The scripter must add "bodypart" argument to OnPlayerGiveDamage callback on their script.

Caused by either the number of arguments or the argument name is different.

https://sampwiki.blast.hk/wiki/Errors_Li...from_prototype


Re: HELP in headshot system - Amunra - 25.12.2015

Show your error line ?


Re: HELP in headshot system - KillerDVX - 25.12.2015

You should been using the old version of "OnPlayerGiveDamage" callback, update it.


Re: HELP in headshot system - Ritzy2K - 25.12.2015

It can be somewhere else, show your code which displays the error.

Note: usually the line above the mentioned line is the cause of error.