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=543536)



function heading differs from prototype - oFFiCiaLBr - 27.10.2014

C:\Users\Alex\Desktop\girlshare.ro_romixers\gamemo des\sarma.pwn(5814) : error 025: function heading differs from prototype
C:\Users\Alex\Desktop\girlshare.ro_romixers\gamemo des\sarma.pwn(5814) : error 025: function heading differs from prototype
C:\Users\Alex\Desktop\girlshare.ro_romixers\gamemo des\sarma.pwn(5901) : error 025: function heading differs from prototype
C:\Users\Alex\Desktop\girlshare.ro_romixers\gamemo des\sarma.pwn(5901) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



line 5814 - Functie OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
line 5901 - Functie OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)


Re: function heading differs from prototype - DTV - 27.10.2014

Try

OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)


Re: function heading differs from prototype - oFFiCiaLBr - 27.10.2014

yes... but nothing...


Re: function heading differs from prototype - ThePhenix - 27.10.2014

Update your sa-mp package to the last one.