Raised This Month: $404 Target: $400
 101% 

[Tutorial] ClientPrefs


Post New Thread Reply   
 
Thread Tools Display Modes
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-09-2018 , 00:17   Re: [Tutorial] ClientPrefs
Reply With Quote #41

That is not what client prefs was designed for. It should not be used for that purpose. You'd be much better off creating a new sqlite database.
__________________
ddhoward is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-09-2018 , 02:06   Re: [Tutorial] ClientPrefs
Reply With Quote #42

Quote:
Originally Posted by ddhoward View Post
That is not what client prefs was designed for. It should not be used for that purpose. You'd be much better off creating a new sqlite database.
But what consequnces can be made from it with its benefit of being super convinient?
__________________


Accepting private work. Contact me if you're interested.
eyal282 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-09-2018 , 02:39   Re: [Tutorial] ClientPrefs
Reply With Quote #43

Quote:
Originally Posted by eyal282 View Post
But what consequnces can be made from it with its benefit of being super convinient?
If you're going to be bypassing the clientprefs natives and forwards, which is the entire point of Clientprefs, you may as well just create a new database. Your code would be nearly exactly the same, but it would be accessing an .sq3 file separate from clientprefs-sqlite.sq3.

https://wiki.alliedmods.net/SQL_(Sou...ipting)#SQLite

The only real downside would be clogging up the database with stuff that clientprefs wouldn't even access. :\

"Client Preferences" was designed for exactly that: preferences.
__________________

Last edited by ddhoward; 08-09-2018 at 02:43.
ddhoward is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-09-2018 , 02:52   Re: [Tutorial] ClientPrefs
Reply With Quote #44

Quote:
Originally Posted by ddhoward View Post
If you're going to be bypassing the clientprefs natives and forwards, which is the entire point of Clientprefs, you may as well just create a new database. Your code would be nearly exactly the same, but it would be accessing an .sq3 file separate from clientprefs-sqlite.sq3.

https://wiki.alliedmods.net/SQL_(Sou...ipting)#SQLite

The only real downside would be clogging up the database with stuff that clientprefs wouldn't even access. :\

"Client Preferences" was designed for exactly that: preferences.
What do you mean clientprefs wouldn't access?
__________________


Accepting private work. Contact me if you're interested.
eyal282 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-09-2018 , 02:56   Re: [Tutorial] ClientPrefs
Reply With Quote #45

Quote:
Originally Posted by eyal282 View Post
What do you mean clientprefs wouldn't access?
Quote:
Originally Posted by ddhoward View Post
If you're going to be bypassing the clientprefs natives and forwards,
also

https://forums.alliedmods.net/showth...16#post2329616
__________________

Last edited by ddhoward; 08-09-2018 at 02:57.
ddhoward is offline
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

Forum Jump


All times are GMT -4. The time now is 20:01.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode