SA-MP Forums Archive
Save Money And other data - 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: Save Money And other data (/showthread.php?tid=144684)



Save Money And other data - Sascha - 28.04.2010

Hi...
I got a problem...I wanted to make my server save the money and other data when a player leaves...i'm using a normal database but somehow it doesn't save them..so I decided to create a new folder with the player's names in which it should save it..
I tried it with:
fopen
fwrite
fclose...
but my problem is now that it won't really write them into the files... and also i'd need to know how I can make the server make a different between the lines like: OnPlayerConnect...
SetPlayerMoney(fread(blablabla, Money);...I hope you understand what I mean..if not please just ask and I'll try to explain more...

(I would send my script but I already deleted that part as it made my server crash -.-)