AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   KeyValues or database? (https://forums.alliedmods.net/showthread.php?t=328180)

joac1144 10-29-2020 19:24

KeyValues or database?
 
If I want to save some information about players - let's say a clan tag set through a plugin - would it be better to save it with KeyValues or a database?

My guess is KeyValues since it's not a lot of information, and it wouldn't require a database set up.

asherkin 10-29-2020 20:17

Re: KeyValues or database?
 
Your use case as described is a perfect fit for the clientprefs API.

For other things, I'd certainly advise using a database for data, with sqlite if you don't need centralised storage.

KeyValues are almost never a sane option for anything other than configuration (and even there SMC is often a better choice).

joac1144 10-29-2020 21:46

Re: KeyValues or database?
 
Thanks!


All times are GMT -4. The time now is 15:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.