[Include] PVars.inc - Automatic PVar saving!
#8

That's a great idea. It's nice to see people actually using this.

I plan on adding something like:

pawn Код:
// Save the PVars in a MySQL database.
SavePVarsForPlayer(playerid, e_SAVE_TYPE_MYSQL, "pvars/mysql/", connectionHandle = 1);
// Save the PVars in a SQLite database.
SavePVarsForPlayer(playerid, e_SAVE_TYPE_SQLITE, "pvars/sqlite/");
// Save the PVars in an INI file.
SavePVarsForPlayer(playerid, e_SAVE_TYPE_INI, "pvars/ini/");
And then the same syntax for LoadPVarsForPlayer. The default mode would be e_SAVE_TYPE_SQLITE of course.

This could actually be the beginning of something great for PVars.
Reply


Messages In This Thread
PVars.inc - Automatic PVar saving! - by Emmet_ - 06.11.2014, 18:12
Re: PVars.inc - Automatic PVar saving! - by sammp - 06.11.2014, 18:21
Re: PVars.inc - Automatic PVar saving! - by JacobEdwards - 06.11.2014, 23:24
Re: PVars.inc - Automatic PVar saving! - by daniscape - 29.11.2014, 22:05
Re: PVars.inc - Automatic PVar saving! - by Crayder - 04.05.2015, 21:05
Re: PVars.inc - Automatic PVar saving! - by hamzajaved780 - 05.05.2015, 02:53
Re: PVars.inc - Automatic PVar saving! - by Crayder - 05.05.2015, 04:45
Re: PVars.inc - Automatic PVar saving! - by Emmet_ - 05.05.2015, 05:11
Re: PVars.inc - Automatic PVar saving! - by Sellize - 05.05.2015, 06:25
Re: PVars.inc - Automatic PVar saving! - by Emmet_ - 05.05.2015, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)