What happen if i delete this? - 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)
+--- Thread: What happen if i delete this? (
/showthread.php?tid=537500)
What happen if i delete this? -
PawnOX - 15.09.2014
This djson_db_cache?
Its useless?
Re: What happen if i delete this? -
Scrillex - 15.09.2014
no it ain't just delete it.
Re: What happen if i delete this? -
Kwarde - 16.09.2014
Did you create a script with DJson yourself? If so; did you use djson_GameModeExit(); in OnGameModeExit() or OnFilterScriptExit()? You should use this!
Or if you quit your server; do you use the 'exit' command or do you click the console away? You should use the 'exit' command.
If your server isn't running you can just delete those cache files. If your server is running, you shouldn't delete it. Every time you run your server, a cache file is created with a random number (djson-db-cache.{randomnumer}.db). This is needed for DJson to work properly. You cannot delete this file if the server is running (except the old files). If you use djson_GameModeExit() and if you are closing the server with the 'exit' command properly, you should check if there's not a mistake in your script that makes your server crash when exitting. If you didn't do this yet, do it :P. Also, if you use djson_GameModeExit(), the file will be deleted automatically.
Re: What happen if i delete this? -
PawnOX - 16.09.2014
Quote:
Originally Posted by Kwarde
Did you create a script with DJson yourself? If so; did you use djson_GameModeExit(); in OnGameModeExit() or OnFilterScriptExit()? You should use this!
Or if you quit your server; do you use the 'exit' command or do you click the console away? You should use the 'exit' command.
If your server isn't running you can just delete those cache files. If your server is running, you shouldn't delete it. Every time you run your server, a cache file is created with a random number (djson-db-cache.{randomnumer}.db). This is needed for DJson to work properly. You cannot delete this file if the server is running (except the old files). If you use djson_GameModeExit() and if you are closing the server with the 'exit' command properly, you should check if there's not a mistake in your script that makes your server crash when exitting. If you didn't do this yet, do it :P. Also, if you use djson_GameModeExit(), the file will be deleted automatically.
|
My friend script this useless thing for me, I dunno why he does this,
but may i ask how "djson" helps on my server? its so useless in my eyes
Re: What happen if i delete this? -
Kwarde - 16.09.2014
DJson is a (fast) file reader/writer (Just like Dini - In fact, it's the official DiniІ) ;
https://sampforum.blast.hk/showthread.php?tid=48439
What did your friend script then? If it's something like a usersystem or house system (for example), or any system that could save settings into a file.. it's pretty useful.