View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-01-2021 , 02:05   Re: save nvault on plugin_end
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
I didn't read your code thoroughly, but loading at authorized, saving at disconnect, and closing at plugin_end() is the ideal way for storing data, IMO. It doesn't matter where you place the function in your code.
I actually did this but when the server get shut down the data doesn't get saved, I added code for saving the data every 30 second for that reason.

Full code:
Spoiler
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 08-01-2021 at 08:14.
Supremache is offline