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 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 target The target to use as translation language.
|
||||
*/
|
||||
|
@ -362,7 +362,7 @@ WeaponsMenuZMarket(client)
|
||||
new Handle:menu_weapons_market = CreateMenu(WeaponsMenuZMarketHandle);
|
||||
|
||||
// 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);
|
||||
|
||||
SetGlobalTransTarget(client);
|
||||
|
@ -281,7 +281,7 @@ bool:ZMarketMenuMain(client)
|
||||
decl String:weaponslist[MENU_LINE_REG_LENGTH];
|
||||
|
||||
// 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);
|
||||
|
||||
// Format menu options.
|
||||
@ -418,7 +418,7 @@ bool:ZMarketMenuLoadout(client)
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
decl String:title[MENU_LINE_HUGE_LENGTH];
|
||||
|
@ -47,9 +47,9 @@ ZCookiesMenuMain(client)
|
||||
// Make client global translations target.
|
||||
SetGlobalTransTarget(client);
|
||||
|
||||
decl String:autorebuyenabled[4];
|
||||
decl String:zhpenabled[4];
|
||||
decl String:overlayenabled[4];
|
||||
decl String:autorebuyenabled[MENU_LINE_SMALL_LENGTH];
|
||||
decl String:zhpenabled[MENU_LINE_SMALL_LENGTH];
|
||||
decl String:overlayenabled[MENU_LINE_SMALL_LENGTH];
|
||||
|
||||
// Get the current toggle state of the cookies.
|
||||
ConfigBoolToSetting(CookiesGetClientCookieBool(client, g_hZMarketAutoRebuyCookie), autorebuyenabled, sizeof(autorebuyenabled), false, client);
|
||||
|
Loading…
Reference in New Issue
Block a user