ChangeDeathInfo problem
#1

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:
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)