17.01.2012, 10:11
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
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)
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
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)