Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

C++ Imgui CRASH

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
12 Мар 2021
Сообщения
58
Реакции
6
image (1).png


Крашит когда открываю меню -_-
Вот код:


#include <Windows.h>
#include "include/imgui_hook.h"
#include "include/imgui/imgui.h"
#include <string>

bool menu = false;

void RenderMain()
{

auto drawlist = ImGui::GetBackgroundDrawList();

std::string text{ "FastBreak" };

ImVec2 text_size = ImGui::CalcTextSize(text.c_str());
// Вычисляем позицию текста
ImVec2 pos{ 1850.0f, 7.0f };
ImVec4 text_color{ 255, 0, 0, 1.0f };
// Рисуем текст

drawlist->AddText(pos, ImGui::GetColorU32(text_color), text.c_str());

if (GetAsyncKeyState(VK_RSHIFT) & 1) {
menu = !menu;
}
if (menu) {

ImGui::SetNextWindowSize({ 161.f,143.f });

// ВОТ ТУТ И НАЧИНАЕТСЯ ПИЗДЕЦ ИЗ ЗА ЧЕГО КРАШИТ:

static bool the_bool;

ImGui::Begin("FastBreak");
ImGui::SetCursorPos({ 14.f,34.f });
ImGui::Checkbox("Adaptive mines", &the_bool);
ImGui::SetCursorPos({ 14.f,62.f });
ImGui::Checkbox("Wool mine", &the_bool);
ImGui::SetCursorPos({ 15.f,92.f });
ImGui::Checkbox("Earth Mine", &the_bool);

}


}

BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hMod);
ImGuiHook::Load(RenderMain);
break;
case DLL_PROCESS_DETACH:
ImGuiHook::Unload();
break;
}
return TRUE;
}
 
learn how to read the debug error bruh, its telling you how to fix it, damaged paster, add ImGui::End(); after ImGui::Checkbox ( "Earth Mine", & the_bool );
1672279978533.png
 
СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО СПАСИБО

И кста у меня тоже скит есть, но он не в бане)
 
sórry man iam not vary gud at this but did iu ever take a looke to the documentatatatation? dat thing that tells iu how to programe works ? you know? so imma helpe iu

check your code and compare to this

C++:
Expand Collapse Copy
ImGui::Begin("Window");
ImGui::Checkbox("alla", &huakbar);
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ImGui::End();

ai gave iu a little helpe
 
sórry man iam not vary gud at this but did iu ever take a looke to the documentatatatation? dat thing that tells iu how to programe works ? you know? so imma helpe iu

check your code and compare to this

C++:
Expand Collapse Copy
ImGui::Begin("Window");
ImGui::Checkbox("alla", &huakbar);
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ImGui::End();

ai gave iu a little helpe

Мне уже помогли)
 
Посмотреть вложение 233273

Крашит когда открываю меню -_-
Вот код:


#include <Windows.h>
#include "include/imgui_hook.h"
#include "include/imgui/imgui.h"
#include <string>

bool menu = false;

void RenderMain()
{

auto drawlist = ImGui::GetBackgroundDrawList();

std::string text{ "FastBreak" };

ImVec2 text_size = ImGui::CalcTextSize(text.c_str());
// Вычисляем позицию текста
ImVec2 pos{ 1850.0f, 7.0f };
ImVec4 text_color{ 255, 0, 0, 1.0f };
// Рисуем текст

drawlist->AddText(pos, ImGui::GetColorU32(text_color), text.c_str());

if (GetAsyncKeyState(VK_RSHIFT) & 1) {
menu = !menu;
}
if (menu) {

ImGui::SetNextWindowSize({ 161.f,143.f });

// ВОТ ТУТ И НАЧИНАЕТСЯ ПИЗДЕЦ ИЗ ЗА ЧЕГО КРАШИТ:

static bool the_bool;

ImGui::Begin("FastBreak");
ImGui::SetCursorPos({ 14.f,34.f });
ImGui::Checkbox("Adaptive mines", &the_bool);
ImGui::SetCursorPos({ 14.f,62.f });
ImGui::Checkbox("Wool mine", &the_bool);
ImGui::SetCursorPos({ 15.f,92.f });
ImGui::Checkbox("Earth Mine", &the_bool);

}


}

BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hMod);
ImGuiHook::Load(RenderMain);
break;
case DLL_PROCESS_DETACH:
ImGuiHook::Unload();
break;
}
return TRUE;
}
@invers1on тут твоё любимое, они уже на плюсах начинают ебашить
 
Назад
Сверху Снизу