Setting player health from saving system
#1

So i made an account system but when i save someone's health and set it in OnPlayerSpawn call back it kills my character while i make sure that i set it to 80.

this code is OnPlayerSpawn call back
whats wrong with it?
pawn Код:
SetPlayerHealth(playerid,pInfo[playerid][pHealth]);
Reply
#2

If you're trying to load their health every time they spawn wouldn't that be rendered pointless? Because they would die then spawn THEN load their health which would be the same as it already was?

Also show how you save/load the players health.
Reply
#3

Your right i have changed a few things and it worked out when i set my players health in the login then it worked.
+1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)