SA-MP Forums Archive
ChangeDeathInfo problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ChangeDeathInfo problem (/showthread.php?tid=225169)



ChangeDeathInfo problem - iJumbo - 13.02.2011

i have ChangeDeathInfo include ... i add it for my headshot system

when i include it i get this error


pawn Код:
error 025: function heading differs from prototype
in
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
why ? D:


Re: ChangeDeathInfo problem - xRyder - 13.02.2011

Show me your forward OnPlayerDeath().
Your public needs to be the same as forward.


Re: ChangeDeathInfo problem - iJumbo - 13.02.2011

its an include downloaded ... in my gm onplayerdeath dont have forward ... have in a_samp.inc


in the ChangeDeathInfo.inc its

pawn Код:
#if defined _ALS_OnPlayerDeath
    #undef OnPlayerDeath
#else
    #define _ALS_OnPlayerDeath
#endif
#define OnPlayerDeath CDI_OnPlayerDeath
forward CDI_OnPlayerDeath(playerid);
but if i change forward CDI_OnPlayerDeath(playerid); to orward CDI_OnPlayerDeath(playerid, killerid, reason);

dotn work no show any message ...