-
Автор темы
- #1
не могу сделать так что бы после выбора выполнялся другой код например выбераю EAC. но он выполняет толко None
C++:
int currItem = 0;
const char* AllCheats[] = { "None", "EAC" ,"EAC#0", "EAC#1","EAC#2","EAC#3","EAC#4","EAC#5","EAC#6ALL", "Internet adapter", "Internet adapter V2" };
ImGui::Combo(skCrypt("Spoof"), &currItem, AllCheats, IM_ARRAYSIZE(AllCheats));
if (ImGui::Button(skCrypt("Launch")))
{
std::string downloadCode;
switch (currItem )
{
case 0:
downloadCode = skCrypt("None");
break;
case 1:
downloadCode = skCrypt("EAC");
break;
case 2:
downloadCode = skCrypt("EAC#0");
break;
case 3:
downloadCode = skCrypt("EAC#1");
break;
}
if (downloadCode != "None")
{
//driver();
MessageBox(NULL, TEXT("Injection was successful!"), TEXT("Attention"), MB_OK);
}
if (downloadCode != "EAC")
{
driver();
MessageBox(NULL, TEXT("Injection EAC was successful!"), TEXT("Attention"), MB_OK);
}
if (downloadCode != "EAC#0")
{
driver0();
MessageBox(NULL, TEXT("Injection EAC#0 was successful!"), TEXT("Attention"), MB_OK);
}
if (downloadCode != "EAC#1")
{
driver1();
MessageBox(NULL, TEXT("Injection EAC#1 was successful!"), TEXT("Attention"), MB_OK);
}
}