[Help]OnPlayerGiveDamage. - 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]OnPlayerGiveDamage. (
/showthread.php?tid=510313)
[Help]OnPlayerGiveDamage. -
Galletziz - 30.04.2014
I have put this callback in my gamemode, but it return:
Код:
error 025: function heading differs from prototype
why??
Re: [Help]OnPlayerGiveDamage. -
AphexCCFC - 30.04.2014
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
return 1;
}
This callback was added in SA-MP 0.3d and will not work in earlier versions!
Re: [Help]OnPlayerGiveDamage. -
Galletziz - 30.04.2014

but yesterday workings perfectly ?
Re: [Help]OnPlayerGiveDamage. -
EpicDutchie - 30.04.2014
If you're using notepad++, copy the code to pawn editor and then compile with pawn editor. I've no explanation for this but it works for me.
Notepad++ compiler:
Код:
DM.pwn(425) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Pawn compiler:
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
I know, it uses the same compiler, but somehow it works for pawn and not for notepad++.