Count always stay 0
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
GetPlayerHealth will return the previous health the player had as it hasn't updated it yet. So get the health, subtract and check:
pawn Код:
new Float:iHealth;
GetPlayerHealth(i,iHealth);
GivePlayerHealth(i,-70.0);
if(iHealth - 70.0 <= 0.0)
{
    Count++;
    DOF2_SetInt(pFile(i),"Deaths",DOF2_GetInt(pFile(i),"Deaths")+1);
}
:* <3
Reply


Messages In This Thread
Count always stay 0 - by Lirbo - 26.04.2015, 19:37
Re: Count always stay 0 - by Konstantinos - 26.04.2015, 19:42
Re: Count always stay 0 - by Lirbo - 26.04.2015, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)