[Help]OnPlayerGiveDamage.
#1

I have put this callback in my gamemode, but it return:

Код:
error 025: function heading differs from prototype
why??
Reply
#2

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!
Reply
#3

but yesterday workings perfectly ?
Reply
#4

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++.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)