Bug OnPlayerTakeDamage and Lag?
#3

OnPlayerTakeDamage was called even if the damage was 0 in 0.3x (probably in 0.3e as well). I guess the damage is too low such as 0.1 for example and because of the problem with the floats, it might goes 0.09 which is basically 0.

You can avoid it by checking the value of the damage:
pawn Код:
if (amount) // not 0.0
{
    // code..
}
I'm not aware of your second problem though.
Reply


Messages In This Thread
Bug OnPlayerTakeDamage and Lag? - by Kyra - 16.04.2014, 18:16
Re : Bug OnPlayerTakeDamage and Lag? - by S4t3K - 16.04.2014, 18:44
Re: Bug OnPlayerTakeDamage and Lag? - by Konstantinos - 16.04.2014, 18:56
Re: Re : Bug OnPlayerTakeDamage and Lag? - by Vince - 16.04.2014, 20:30
Re: Bug OnPlayerTakeDamage and Lag? - by Kyra - 17.04.2014, 19:10

Forum Jump:


Users browsing this thread: 1 Guest(s)