Saving Contents
#1

Hello, first off I'm starting to get a hang of scripting, and now I want to save multiple content for my RP Server:

-Save Weapons
-Save Crack & Pot
-Save Materials
-Save /skills Level

I want to save those things on log out and/or crashes.
All help is appreciated.
Reply
#2

create a function and call it whenever needed. the function should contain a saving function. best one is mysql, but it's complex. try learning from other scripts as this is a difficult question for me
Reply
#3

We help you with errors, but we don't make scripts. Go to the Script Request thread if you want other to create it for you.
Reply
#4

I agree. and try to see .:NoZer0:.'s avatar
Reply
#5

Quote:
Originally Posted by Thanatos
I agree. and try to see .:NoZer0:.'s avatar
xD, I am gonna place this in my signature
Reply
#6

I want to do it myself, but what do I do?
Reply
#7

First Create Login/Register Function
Then You Place Them Under /login and /register
Then You Create Save Function
You need to put that Save Function under OnPlayerDisconnect

For Further Help Look Wiki at File Functions : [iurl=https://sampwiki.blast.hk/wiki/File_Functions]https://sampwiki.blast.hk/wiki/File_Functions[/iurl]
Or You can use Dini : [iurl=http://forum.sa-mp.com/index.php?topic=981.0]http://forum.sa-mp.com/index.php?topic=981.0[/iurl]
Reply
#8

LAWL. No Im not fucking retarded. I'm a moderately good scripter, but I've never saved the content, how do I save weapons, drugs, etc. to a .cfg so they have it when they log back in?
Reply
#9

Here is a tutorial in DJSon

[iurl=http://forum.sa-mp.com/index.php?topic=101405.0]Click[/iurl]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)