How can you save the armour and health? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: How can you save the armour and health? (
/showthread.php?tid=331351)
How can you save the armour and health? -
squomp - 04.04.2012
How would I save armour and health to an .ini file... i.e. saving money to an .ini like so
dini_IntSet(file, "money", GetPlayerMoney(playerid));
Re: How can you save the armour and health? -
FuTuяe - 04.04.2012
pawn Код:
dini_FloatSet(file, "health", health);
dini_FloatSet(file, "armour", armour);
And this is the wrong section too, this should be moved to Scripting Discussion.
Re: How can you save the armour and health? -
squomp - 04.04.2012
thank you so much i spent ages trying to work this out
Re: How can you save the armour and health? -
squomp - 04.04.2012
wait how do i load it i.e. GivePlayerMoney(playerid, dini_Int(file, "money")-GetPlayerMoney(playerid)); for money
Re: How can you save the armour and health? -
squomp - 04.04.2012
never i did it, thanks again