View Full Version : SendDeathMessage not always sending message

17/01/2012, 11:11 AM
Hi all, i have an annoying problem in my mode. Sometimes when i use "SendDeathMessage" it shows a death message but %80 of the time it does not. I have it at the top of OnPlayerDeath callback.

Here's the code

public OnPlayerDeath(playerid, killerid, reason)
if(IsPlayerNPC(playerid))return 1;

SendDeathMessage(killerid, playerid, reason);

//rest of stuff update stats ect

Now i know the function is being called because underneath it i have the code that updates stats (kills/deaths) and that is working fine (that's easy to tell because it also updates my stats TextDraw).

So if anyone else has encountered this problem and knows why it's happening or how to fix, please let me know.

Thanks in Advance. (rep for fix)

18/01/2012, 09:42 PM

18/01/2012, 09:47 PM
Try commenting the IsPlayerNPC line and test if it works.

18/01/2012, 10:02 PM
Could it be an FS or include screwing things up?