SA-MP Forums Archive
Account + ScoreList - 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: Account + ScoreList (/showthread.php?tid=87158)



Account + ScoreList - saiberfun - 18.07.2009

Hey guys
me ain't that good at scripting files..
but i wanna kno
is there a way everytime some1 registers to save in one file that already exists
like an
accounts.ini
to add the name and score there?
and when the player updates with sumthin like the OnPlayerUpdate function of seif
his new score will be added if yes u couldf explain it or u got a tut.
'cause i searched n couldn't find a way to add stuff to an existing file
only to change the whole file.
and i couldn't find to find and edit the accountstuff thats already added to the file.

Example of the file then:
Код:
Saiberfun Score:12
Ryoere Score: 15
Someone Score: 8



Re: Account + ScoreList - yom - 18.07.2009

OnPlayerUpdate is a native SA:MP callback.

Check the fopen modes.

http://www.compuphase.com/pawn/File_IO_Support.pdf