28.04.2010, 18:10
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 -.-)
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 -.-)