Raised This Month: $7 Target: $400
 1% 

[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?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
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?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
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
delachambre
AlliedModders Donor
Join Date: Jan 2011
Location: France
Old 12-31-2018 , 01:25   Re: [Tutorial] ClientPrefs
Reply With Quote #46

Hello,

My cookies are not saved when the server restarts, a little idea?

Thanks in advance.
__________________
♥ 𝕊ℙ𝕒𝕨𝕟 𝔻𝕖𝕧𝕖𝕝𝕠𝕡𝕖𝕣 [ℂ𝕊:𝕊] ♥

Clan-Nemesis
delachambre is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-31-2018 , 08:35   Re: [Tutorial] ClientPrefs
Reply With Quote #47

Quote:
Originally Posted by delachambre View Post
Hello,

My cookies are not saved when the server restarts, a little idea?

Thanks in advance.
Code? Does it affect all plugins?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-31-2018 , 09:39   Re: [Tutorial] ClientPrefs
Reply With Quote #48

Quote:
Originally Posted by delachambre View Post
Hello,

My cookies are not saved when the server restarts, a little idea?

Thanks in advance.
This tutorial not explain, "how safe client cookie".

https://sm.alliedmods.net/new-api/clientprefs

https://sm.alliedmods.net/new-api/cl...etClientCookie

It depends, how you use cookies... from ClientPrefs menu (!settings) or other way.
- Safe cookie when value change.
__________________
Do not Private Message @me
Bacardi 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 04:08.


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