Posts: 118
Threads: 5
Joined: Apr 2014
Reputation:
0
Ok, so first, this bug's not happening always, but is pissing me off as hell. When i die it won't call the "OnPlayerDeath" function. More exactly, let's say i'm falling from Killiad or from some high building. When i touch the ground, i wont't see me dying, just the others will. I will se myself up and i'll can move, but can't do anything else like enter a car or something.
If someone have clues about what i am talking post here please. Thanks in advance.
Posts: 983
Threads: 98
Joined: Feb 2012
Reputation:
0
Show us what is under OnPlayerDeath, its not bugged, it has something to do with your code or if this isnt your localhost server then you might were lagging or bugged.
I hope that I helped you!.
Posts: 118
Threads: 5
Joined: Apr 2014
Reputation:
0
I'm 100% sure that it is not from my "OnPlayerDeath" because i used to have this bug from the very first time i started scripting. I mean, the callback was empty, just "return 1;" and sometimes it would still do that.
I read on the forum and it seems that fixes.inc may cause this bug. So i commented out the "FIX_ONPLAYERDEATH" part (all of it) and the bug is still there. It just don't even call the function because if i put SCM(plid, -1, "blabla"); it won't show me that. I checked my whole .pwn and i still couldn't find something that could cause this bug... OnPlayerGiveDamage and OnPlayerTakeDamage are also empty just return 1.
I don't think that this might be a host problem because it appears on localhost and on another 2 hosted locations too.
Posts: 985
Threads: 13
Joined: Sep 2011
Reputation:
0
You might be using an include that hooks OnPlayerDeath. Check each of your includes.