Death messages doesn't send for id 0
#4

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
This is awfully wrong you see, why do this:
PHP код:
if(lasthit[playerid] == INVALID_PLAYER_ID

When you can do this:
PHP код:
if(killerid != INVALID_PLAYER_ID)



It's the exact same thing, your last hit can not be accurate at all.

Change those "lasthit" checks to killerid checks for validity.
Sometimes my code sets the health to 0 resulting in the player suiciding but it also sets a variable that checks the player who has performed the last shot and so sends the death message with the last shot variable. I'm so confused. What should I do?
Reply


Messages In This Thread
Death messages doesn't send for id 0 - by Exhibit - 11.05.2018, 22:40
Re: Death messages doesn't send for id 0 - by RogueDrifter - 12.05.2018, 05:54
Re: Death messages doesn't send for id 0 - by Sew_Sumi - 12.05.2018, 10:16
Re: Death messages doesn't send for id 0 - by Exhibit - 12.05.2018, 10:42
Re: Death messages doesn't send for id 0 - by Sew_Sumi - 12.05.2018, 10:56
Re: Death messages doesn't send for id 0 - by Exhibit - 12.05.2018, 11:12
Re: Death messages doesn't send for id 0 - by RogueDrifter - 12.05.2018, 14:10
Re: Death messages doesn't send for id 0 - by Exhibit - 12.05.2018, 17:07
Re: Death messages doesn't send for id 0 - by Sew_Sumi - 12.05.2018, 17:49
Re: Death messages doesn't send for id 0 - by RogueDrifter - 13.05.2018, 11:52

Forum Jump:


Users browsing this thread: 3 Guest(s)