View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-05-2014 , 15:14   Re: [Tutorial] ClientPrefs
Reply With Quote #28

I think this example have little mistake,
in cookie menu handler
- CookieMenuAction_SelectOption action happens when you pick option "TestCookie" from cookie menu.
So, you are picking old cookie value on OnClientCookiesCached(),
So so, cookie OnOff integer value get change and saved AFTER you have choose menu option "On/Off".
So so so, you need choose twice "on/off" option from menu to update rigth value in global variable g_bClientPreference[client].

how ever, I do have SourceMod Version: 1.5.2, has this feature changed for now ??

*edit
could problem be SetCookiePrefabMenu ? bad timing

Last edited by Bacardi; 04-05-2014 at 15:28.
Bacardi is offline