Jump to content

Save Data?


Recommended Posts

Posted

How do i save the data of a player who has joined, e.g - current postion, current money, weapons etc,

and one other question, easy for you guys!

When you use the basic MTA login system, when does all the data go?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
These functions might be useful for you:
getPlayerAccount 
setAccountData 
getAccountData 

All data goes to "internal.db" SQL database.

Dont have a database :?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

The database is already on the server.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
It is located in the deathmatch folder

it's located where your mtaserver.conf file is.

Thanks Guys, so how do i save the data!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

As AMARANT told you already...

getPlayerAccount 
setAccountData 
getAccountData 

If I helped you, please click the like button on the right ;) Thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...