SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/02/2018, 06:37 PM   #1
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 179
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 / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 12/02/2018, 09:01 PM   #2
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 645
Reputation: 30
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, 09:27 PM   #3
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 645
Reputation: 30
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, 04:12 AM   #4
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 179
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 / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 13/02/2018, 08:12 AM   #5
PepsiCola23
Gangsta
 
Join Date: May 2015
Posts: 684
Reputation: 3
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, 08:17 AM   #6
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,144
Reputation: 345
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:
I'm not using the forum to release stuff anymore, if you want updates for my releases or to check my new releases check the links below >
Quote:
Originally Posted by Escobar ⚠
Life sucked me in and shat me on the cruel world.

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


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 10:38 AM
Keep my server save!? Mariawantstowatchtv Scripting Help 1 18/09/2014 09:08 AM
Save server help Brys Scripting Help 3 26/07/2014 01:45 PM
I'm new: How do I save my server? JosephK Server Support 8 27/05/2012 07:44 PM
Server Don't Save? [Headless] Scripting Help 0 11/10/2011 04:03 AM


All times are GMT. The time now is 03:56 PM.


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