SA-MP Forums Archive
how to save ARMOUR - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to save ARMOUR (/showthread.php?tid=158285)



how to save ARMOUR - omidi - 09.07.2010

hi guys....
how to simply save armour and health into the file like scriptsfiles/hpandarmor.txt
with using dini file maybe ?


Re: how to save ARMOUR - Grim_ - 09.07.2010

Using dini:
pawn Код:
// Somewhere
new Float:armour;
GetPlayerArmour(playerid, armour);
dini_FloatSet(file, "Armour", armour);
Of course you are going to have to define some things firstly, but that's basically it.