12.05.2018, 05:54
This is awfully wrong you see, why do this:
When you can do this:
![](https://media1.tenor.com/images/d8ff9629ade20e3fe0d95b919bdc96f4/tenor.gif?itemid=11140147)
It's the exact same thing, your last hit can not be accurate at all.
Change those "lasthit" checks to killerid checks for validity.
PHP код:
if(lasthit[playerid] == INVALID_PLAYER_ID)
{
PHP код:
if(killerid != INVALID_PLAYER_ID)
{
![](https://media1.tenor.com/images/d8ff9629ade20e3fe0d95b919bdc96f4/tenor.gif?itemid=11140147)
It's the exact same thing, your last hit can not be accurate at all.
Change those "lasthit" checks to killerid checks for validity.