Health issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Health issue (
/showthread.php?tid=418510)
Health issue -
CROSS_Hunter - 25.02.2013
Well, in my server i am trying to make a small idea.. in profiles the health of the player is saved.. i wanted it to be 1000 in the profile but i face something when player stats are saved.. it goes cyco to different numbers sometimes it goes to 0 so player gets killed on spawn...
Код:
dUserSetINT(PlayerName2(playerid)).("Health",floatround(health));
the float:
Код:
new Float:health;
GetPlayerHealth(playerid, Float:health);
Re: Health issue -
SantarioLeone - 25.02.2013
How is your user data saved? I see how you GetPlayerHealth but whats your saving method.
Re: Health issue -
CROSS_Hunter - 25.02.2013
Quote:
Originally Posted by SantarioLeone
How is your user data saved? I see how you GetPlayerHealth but whats your saving method.
|
its ok now i fixed it.. i just changed how its saved to it doesnt be fixed to a certain number... i made it editable like the score/kills/deaths in profiles.. thanks for ur help anyways