This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! please help me fix Spinner Value

alsya

Solid & Active Platinian
How to get case 3: revert to case 4
in lgl mod menu??

This my code:

C++:
        OBFUSCATE("0_CollapseAdd_Spinner__MaxCoin, MAX DIAMOND, MAX TOKEN, MAX CARD"),


and this my code switch:


C++:
switch (featNum) {
             case 0:
                 switch (value) {
                     case 0:
                         sliderValue = value;
                         break;
                     case 1:
                         sliderValue = value;
                         break;
                     case 2:
                         sliderValue = value;
                         break;
                     case 3:
                         if(value >= 4){
                            sliderValue = value;
                            break;
                         }
                       
                 }
                 break;

and how do you get case 3 to return to a value of 4??
because the value of 3 cannot be hacked, the game will crash
 
To make the code easier to read:

switch (featNum) {
case 0:
sliderValue = value;
break;

Take a closer look at the syntax for writing a spinner:
CollapseAdd_Spinner_Name Spiner_Items 1,Items 2,Items 3

void Update() {
if (sliderValue == 0)
{
LOGI("Items 1");
}
else if (sliderValue == 1)
{
LOGI("Items 2);
}
else (sliderValue == 2)
{
LOGI("Items 3");
}
}
 
 

How can you declare a method in a case? Based on this, I see that you lack even basic basic knowledge of C ++ bro, it's very easy and you can't do it. Under Update, I mentioned Hook Update and not that you need to create exactly what I threw you, my advice to you: before asking for help, you either know something,
or don't ask for help at all.
 




It's been resolved thank you