SA-MP Forums Archive
fread [NOT SOLVED] - 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: fread [NOT SOLVED] (/showthread.php?tid=144621)



fread [NOT SOLVED] - Sascha - 28.04.2010

Hi...
I would like to store the player's money in a file named with the player name...
but how can i make it replace the new money with the old money?



Re: fread - dice7 - 28.04.2010

Open the file in io_write mode. This will overwrite everything in the file and then rewrite the old stuff in
https://sampwiki.blast.hk/wiki/Fopen



Re: fread - Sascha - 28.04.2010

ok thx...and how can I make my script read everything on its one?...
so like if I safe the money, the kicks etc. in it..
how can i make it get the money number and the kick number seperated, so that i can set the money to it..