SA-MP Forums Archive
Saving Contents - 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: Saving Contents (/showthread.php?tid=84193)



Saving Contents - Adamrcook - 29.06.2009

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.


Re: Saving Contents - Ignas1337 - 29.06.2009

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


Re: Saving Contents - [nl]daplayer - 29.06.2009

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.


Re: Saving Contents - Ignas1337 - 29.06.2009

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


Re: Saving Contents - [nl]daplayer - 29.06.2009

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


Re: Saving Contents - Adamrcook - 29.06.2009

I want to do it myself, but what do I do?


Re: Saving Contents - [nl]daplayer - 29.06.2009

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]


Re: Saving Contents - Adamrcook - 29.06.2009

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?


Re: Saving Contents - [nl]daplayer - 29.06.2009

Here is a tutorial in DJSon

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