merge
This commit is contained in:
commit
0bd4346c1d
@ -914,7 +914,7 @@ stock bool:ConfigSettingToBool(const String:option[])
|
|||||||
*
|
*
|
||||||
* @param bOption True/false value to be converted to "yes/on"/"no/off", respectively.
|
* @param bOption True/false value to be converted to "yes/on"/"no/off", respectively.
|
||||||
* @param option Destination string buffer to store "yes/on" or "no/off" in.
|
* @param option Destination string buffer to store "yes/on" or "no/off" in.
|
||||||
* @param maxlen Length of destination string buffer (wont't be more than 4).
|
* @param maxlen Length of destination string buffer.
|
||||||
* @param yesno When true, returns "yes/no", false returns "on/off."
|
* @param yesno When true, returns "yes/no", false returns "on/off."
|
||||||
* @param target The target to use as translation language.
|
* @param target The target to use as translation language.
|
||||||
*/
|
*/
|
||||||
|
@ -362,7 +362,7 @@ WeaponsMenuZMarket(client)
|
|||||||
new Handle:menu_weapons_market = CreateMenu(WeaponsMenuZMarketHandle);
|
new Handle:menu_weapons_market = CreateMenu(WeaponsMenuZMarketHandle);
|
||||||
|
|
||||||
// Get "yes" or "no" settings from respective cvar.
|
// Get "yes" or "no" settings from respective cvar.
|
||||||
decl String:buyzonesetting[8];
|
decl String:buyzonesetting[MENU_LINE_SMALL_LENGTH];
|
||||||
ConfigBoolToSetting(GetConVarBool(g_hCvarsList[CVAR_WEAPONS_ZMARKET_BUYZONE]), buyzonesetting, sizeof(buyzonesetting), true, client);
|
ConfigBoolToSetting(GetConVarBool(g_hCvarsList[CVAR_WEAPONS_ZMARKET_BUYZONE]), buyzonesetting, sizeof(buyzonesetting), true, client);
|
||||||
|
|
||||||
SetGlobalTransTarget(client);
|
SetGlobalTransTarget(client);
|
||||||
|
@ -281,7 +281,7 @@ bool:ZMarketMenuMain(client)
|
|||||||
decl String:weaponslist[MENU_LINE_REG_LENGTH];
|
decl String:weaponslist[MENU_LINE_REG_LENGTH];
|
||||||
|
|
||||||
// Get auto-rebuy setting.
|
// Get auto-rebuy setting.
|
||||||
decl String:rebuyautosetting[8];
|
decl String:rebuyautosetting[MENU_LINE_SMALL_LENGTH];
|
||||||
ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), rebuyautosetting, sizeof(rebuyautosetting), true, client);
|
ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), rebuyautosetting, sizeof(rebuyautosetting), true, client);
|
||||||
|
|
||||||
// Format menu options.
|
// Format menu options.
|
||||||
@ -418,7 +418,7 @@ bool:ZMarketMenuLoadout(client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Copy "Yes/No" to NVGs string.
|
// Copy "Yes/No" to NVGs string.
|
||||||
decl String:nvgsbool[8];
|
decl String:nvgsbool[MENU_LINE_SMALL_LENGTH];
|
||||||
ConfigBoolToSetting(bool:rebuyweapons[Slot_NVGs][0], nvgsbool, sizeof(nvgsbool), true, client);
|
ConfigBoolToSetting(bool:rebuyweapons[Slot_NVGs][0], nvgsbool, sizeof(nvgsbool), true, client);
|
||||||
|
|
||||||
decl String:title[MENU_LINE_HUGE_LENGTH];
|
decl String:title[MENU_LINE_HUGE_LENGTH];
|
||||||
|
@ -47,9 +47,9 @@ ZCookiesMenuMain(client)
|
|||||||
// Make client global translations target.
|
// Make client global translations target.
|
||||||
SetGlobalTransTarget(client);
|
SetGlobalTransTarget(client);
|
||||||
|
|
||||||
decl String:autorebuyenabled[4];
|
decl String:autorebuyenabled[MENU_LINE_SMALL_LENGTH];
|
||||||
decl String:zhpenabled[4];
|
decl String:zhpenabled[MENU_LINE_SMALL_LENGTH];
|
||||||
decl String:overlayenabled[4];
|
decl String:overlayenabled[MENU_LINE_SMALL_LENGTH];
|
||||||
|
|
||||||
// Get the current toggle state of the cookies.
|
// Get the current toggle state of the cookies.
|
||||||
ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), autorebuyenabled, sizeof(autorebuyenabled), false, client);
|
ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), autorebuyenabled, sizeof(autorebuyenabled), false, client);
|
||||||
|
Loading…
Reference in New Issue
Block a user