SendDeathMessage
#1

Hee guys,
My SendDeathMessage dont work.
If i kill myself i dont get a death message.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    PlayerInfo[killerid][pKills]++;
    PlayerInfo[playerid][pDeaths]++;
    SendDeathMessage(killerid, playerid, reason);
	return 1;
}
pls fix.
Reply
#2

Is your death message window set to display itself? Push F9 in-game and kill yourself again.
Reply
#3

That's because when you suicide killerid is INVALID_PLAYER_ID. And that is higher than your array allows (assuming you use MAX_PLAYERS) So before you do anything to killerid, check if killerid IS NOT INVALID_PLAYER_ID.
Reply
#4

Its not f9. I already have it on. Its really strange. Normally i didnt had the problem.
Reply
#5

Know i put the senddeathmessage into a filterscript and now it works:S
Anyway thanks for responding
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)