bug onplayerdeath
#1

I get this bug weird sometimes. When a player kill another player, he dies but the onplayerdeath is executed with killerid = 65535 (killed by no one, suicide probably) but he is killed by another player.

Код:
[21:49:39] [debug] OnPlayerDeath(1, 0, 24)
[21:49:39] DEATH: NEGATiWE[ST] was killed by YASHIN with gun 24
[21:49:47] [debug] OnPlayerDeath(1, 65535, 255)
[21:49:58] [debug] OnPlayerDeath(1, 0, 24)
[21:49:58] DEATH: NEGATiWE[ST] was killed by YASHIN with gun 24
[21:50:07] [debug] OnPlayerDeath(1, 0, 24)
[21:50:07] DEATH: NEGATiWE[ST] was killed by YASHIN with gun 24
[21:50:15] [debug] OnPlayerDeath(1, 0, 24)
[21:50:15] DEATH: NEGATiWE[ST] was killed by YASHIN with gun 24
The player (Yashin) killed me but in onplayerdeath show killerid = 65535.

Its happend sometimes, not always. But it's really annoying..

If someone can help me...please post here.
Reply
#2

do you check for
PHP код:
if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid)) 
?
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
do you check for
PHP код:
if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid)) 
?
Yes.
Reply
#4

....
Reply
#5

Well, no one knows the code you wrote more than you do. You probably have contradicted with the include somewhere in your script, I don't think there is a way for us to know what exactly is wrong in here. If you want my opinion, you should just stop using the said include and design your own that goes along with your gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)