18.09.2012, 15:36
Hi there,
I have made a Health field in a MySQL database to store player's health. However, once it's loaded, and when player's health should go down, it doesn't - or at least the healthbar textdraw returns to full.
I have this OnPlayerUpdate:
The rest of the health defines just load it and make it a 100 whenever required, for instance on HospitalRelease.
I have made a Health field in a MySQL database to store player's health. However, once it's loaded, and when player's health should go down, it doesn't - or at least the healthbar textdraw returns to full.
I have this OnPlayerUpdate:
Код:
if(health != Player[playerid][Health]) { SetPlayerHealth(playerid, Player[playerid][Health]); }