How to save money in the server?
#1

Hi, i want to save peoples money on my server.
When im playing with money then i quit the game ,then when i join the server and login the money appiars but then it goes to 000000 like its cheat and the system get the money, pls what to do?
Reply
#2

If the player disconnects you need to save his money to a database
And if he connects you just need to load the information and give him his money back

You should use famous scripts, like dudb from DracoBlue (uses files)
If you dont want to use his script you can search for another file savin system or use the file functions
Buf if you dont want to save the information to files you can use other databases like mysql or sqlite for sa-mp
Reply
#3

just download i from here and do what they says.
link
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)