-
Автор темы
- #1
в консоли пишет stack index-1
как исправить?
UI.AddHotkey("Defaultconfig");
UI.AddSliderInt("Fov", 0.00, 30.00);
UI.AddSliderInt("Deadzone", 0.00, 1.00);
UI.AddSliderInt("Speedyaw", 0, 100);
UI.AddSliderInt("Speedpitch", 0, 100);
UI.AddSliderInt("Recoilcontrol", 0, 100);
UI.AddSliderInt("Assist", 0, 100);
UI.AddSliderInt("Triggerbothitchance", 0, 100);
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Fov");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Deadzone");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Speed (yaw)");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Speed (pitch)");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Recoil control");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Assist");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Triggerbot hitchance");
function Defaultcontrol() {
var general_fov = UI.GetValue("Script items", "GENERAL");
var general_deadzone = UI.GetValue("Script items", "GENERAL");
var general_speedyaw = UI.GetValue("Script items", "GENERAL");
var general_speedpitch = UI.GetValue("Script items", "GENERAL");
var general_recoilcontrol = UI.GetValue("Script items", "GENERAL");
var general_assist = UI.GetValue("Script items", "GENERAL");
var general_triggerbothitchance = UI.GetValue("Script items", "GENERAL");
var isActive = UI.IsHotkeyActive("Script items", "Defaultconfig");
if (isActive == true) {
UI.SetValue("Legit", "GENERAL", "Default control", general_fov);
UI.SetValue("Legit", "GENERAL", "Default control", general_deadzone);
UI.SetValue("Legit", "GENERAL", "Default control", general_speed(yaw));
UI.SetValue("Legit", "GENERAL", "Default control", general_speed(pitch));
UI.SetValue("Legit", "GENERAL", "Default control", general_recoilcontrol);
UI.SetValue("Legit", "GENERAL", "Default control", general_assist);
UI.SetValue("Legit", "GENERAL", "Default control", general_triggerbothitchance);
} else {
UI.SetValue("Legit", "GENERAL", "Defaultconfig", fov_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", deadzone_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", speedyaw_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", speedpitch_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", recoilcontrol_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", assist_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", triggerbothitchance_cashe);
}
}
Cheat.RegisterCallback("CreateMove", "Defaultconfig")
как исправить?
UI.AddHotkey("Defaultconfig");
UI.AddSliderInt("Fov", 0.00, 30.00);
UI.AddSliderInt("Deadzone", 0.00, 1.00);
UI.AddSliderInt("Speedyaw", 0, 100);
UI.AddSliderInt("Speedpitch", 0, 100);
UI.AddSliderInt("Recoilcontrol", 0, 100);
UI.AddSliderInt("Assist", 0, 100);
UI.AddSliderInt("Triggerbothitchance", 0, 100);
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Fov");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Deadzone");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Speed (yaw)");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Speed (pitch)");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Recoil control");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Assist");
var general_cashe = UI.GetValue("Legit", "GENERAL", "Default config", "Triggerbot hitchance");
function Defaultcontrol() {
var general_fov = UI.GetValue("Script items", "GENERAL");
var general_deadzone = UI.GetValue("Script items", "GENERAL");
var general_speedyaw = UI.GetValue("Script items", "GENERAL");
var general_speedpitch = UI.GetValue("Script items", "GENERAL");
var general_recoilcontrol = UI.GetValue("Script items", "GENERAL");
var general_assist = UI.GetValue("Script items", "GENERAL");
var general_triggerbothitchance = UI.GetValue("Script items", "GENERAL");
var isActive = UI.IsHotkeyActive("Script items", "Defaultconfig");
if (isActive == true) {
UI.SetValue("Legit", "GENERAL", "Default control", general_fov);
UI.SetValue("Legit", "GENERAL", "Default control", general_deadzone);
UI.SetValue("Legit", "GENERAL", "Default control", general_speed(yaw));
UI.SetValue("Legit", "GENERAL", "Default control", general_speed(pitch));
UI.SetValue("Legit", "GENERAL", "Default control", general_recoilcontrol);
UI.SetValue("Legit", "GENERAL", "Default control", general_assist);
UI.SetValue("Legit", "GENERAL", "Default control", general_triggerbothitchance);
} else {
UI.SetValue("Legit", "GENERAL", "Defaultconfig", fov_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", deadzone_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", speedyaw_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", speedpitch_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", recoilcontrol_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", assist_cashe);
UI.SetValue("Legit", "GENERAL", "Defaultconfig", triggerbothitchance_cashe);
}
}
Cheat.RegisterCallback("CreateMove", "Defaultconfig")