SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/02/2018, 07:37 PM   #1
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 50
Reputation: 0
Default Save All server

How to save all server e.g. statistics: score, money when the server itself turns off or restarts? For OnGameModeExit and OnPlayerDisconnect.
__________________
Poland
KamilPolska is offline   Reply With Quote
Old 12/02/2018, 10:01 PM   #2
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 530
Reputation: 23
Default Re: Save All server

you have to create a saving systems, which will be saved in data storage (such as MySQL, SQLite, DINI and etc)
__________________
here to help
Mugala is offline   Reply With Quote
Old 12/02/2018, 10:27 PM   #3
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 530
Reputation: 23
Default Re: Save All server

so here is a tutorial links
MySQL - http://forum.sa-mp.com/showthread.php?t=627520
Dini - http://forum.sa-mp.com/showthread.php?t=101560
SQLite - http://forum.sa-mp.com/showthread.php?t=449536
__________________
here to help
Mugala is offline   Reply With Quote
Old 13/02/2018, 05:12 AM   #4
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 50
Reputation: 0
Default Re: Save All server

It meant how to save the server. Eg /gmx, some timer. So as not to lose player statistics (DINI)
__________________
Poland
KamilPolska is offline   Reply With Quote
Old 13/02/2018, 09:12 AM   #5
PepsiCola23
Gangsta
 
Join Date: May 2015
Posts: 548
Reputation: 2
Default Re: Save All server

Yeah just exactly what he said . You gotta make a dini based saving system . Use search
PepsiCola23 is offline   Reply With Quote
Old 13/02/2018, 09:17 AM   #6
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,196
Reputation: 224
Default Re: Save All server

And try to save stats the moment they change, for EX: hooking GivePlayerMonry to update stats the moment a transaction happens in case of server crash/restart
__________________
Quote:
Originally Posted by RogueDrifter
-For fuck's sake people stop deleting your help threads you're just losing chances of ever getting help again...
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install

[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link



Quote:
Originally Posted by RogueDrifter
-I'm now available to script small scripts for payments done through paypal.
RogueDrifter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server save b00m112 Scripting Help 2 10/10/2014 11:38 AM
Keep my server save!? Mariawantstowatchtv Scripting Help 1 18/09/2014 10:08 AM
Save server help Brys Scripting Help 3 26/07/2014 02:45 PM
I'm new: How do I save my server? JosephK Server Support 8 27/05/2012 08:44 PM
Server Don't Save? [Headless] Scripting Help 0 11/10/2011 05:03 AM


All times are GMT. The time now is 01:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.