SA-MP Forums Archive
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=577077)



function heading differs from prototype - KillerDVX - 08.06.2015

Hi guys,

I get these errors :

PHP код:
C:\Users\acer\Desktop\MAJ CRTFC2 Copie\gamemodes\GMRPGV1.0.pwn(1179) : error 025: function heading differs from prototype
C
:\Users\acer\Desktop\MAJ CRTFC2 Copie\gamemodes\GMRPGV1.0.pwn(1179) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Errors

Line :

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart) { 



Re: function heading differs from prototype - Konstantinos - 08.06.2015

"bodypart" parameter was added in 0.3z so the includes (a_samp.inc) you're trying to compile the script with is not updated.


Re : function heading differs from prototype - KillerDVX - 08.06.2015

What souhld i do ?


Re: function heading differs from prototype - Konstantinos - 08.06.2015

Update executable and includes files to 0.3.7 and re-compile the scripts.


Re : function heading differs from prototype - KillerDVX - 08.06.2015

I couldn't find a_samp last version include, if you have a link could you give it to me please ?


Re: function heading differs from prototype - Konstantinos - 08.06.2015

There is a whole section for it "News and Updates". Open the thread for 0.3.7 and you'll find the page for downloads. You'll also find the server package (for Windows) there.

Not that hard.


Re : function heading differs from prototype - KillerDVX - 08.06.2015

Omg.. IT WORKS!

Really Helped. <3

+Rep.