SendDeathMessage problem
#5

No, he needs to simply pass the parameters that are passed to OnPlayerDeath - like it says on the wiki - :

pawn Код:
SendDeathMessage(killerid, playerid, reason);
You don't need to check whether the killerid is valid or not for SendDeathMessage. INVALID_PLAYER_ID is a valid killerid (it means no killer - suicide).

You never need to check that playerid is valid. Obviously it's valid - someone died, calling OPD.
Reply


Messages In This Thread
SendDeathMessage problem - by DarkLored - 24.03.2014, 02:42
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 03:10
Re: SendDeathMessage problem - by DarkLored - 24.03.2014, 03:18
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 03:29
Re: SendDeathMessage problem - by MP2 - 24.03.2014, 07:59
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 17:34
Re: SendDeathMessage problem - by DarkLored - 24.03.2014, 19:54

Forum Jump:


Users browsing this thread: 2 Guest(s)