SendDeathMessage not always sending message - 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)
+--- Thread: SendDeathMessage not always sending message (
/showthread.php?tid=311559)
SendDeathMessage not always sending message -
iggy1 - 17.01.2012
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)
Re: SendDeathMessage not always sending message -
iggy1 - 18.01.2012
Bump.
Re: SendDeathMessage not always sending message -
spedico - 18.01.2012
Try commenting the IsPlayerNPC line and test if it works.
Re: SendDeathMessage not always sending message -
Slice - 18.01.2012
Could it be an FS or include screwing things up?