SendDeathMessage not always sending message
#1

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

pawn Код:
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)
Reply
#2

Bump.
Reply
#3

Try commenting the IsPlayerNPC line and test if it works.
Reply
#4

Could it be an FS or include screwing things up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)