Help! please help me fix Spinner Value

alsya

Solid & Active Platinian
Original poster
Oct 21, 2021
80
19
8
unknown
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
 

NullCoder

Inactive Approved Modder
Jun 8, 2020
110
901
93
21
None
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");
}
}
 

alsya

Solid & Active Platinian
Original poster
Oct 21, 2021
80
19
8
unknown
Untuk membuat kode lebih mudah dibaca:

beralih (featNum) {
kasus 0:
sliderValue = nilai;
merusak;

Perhatikan lebih dekat sintaks untuk menulis pemintal:
CiutkanAdd_Spinner_Name Spiner_Items 1,Item 2,Item 3

batal Perbarui() {
jika (nilai slider == 0)
{
LOGI("Item 1");
}
lain jika (sliderValue == 1)
{
LOGI("Item 2);
}
lain (sliderValue == 2)
{
LOGI("Item 3");
}
}
[/MENGUTIP]


Apakah sepert
Screenshot_2022-01-04-15-35-40-067_com.aide.ui.jpg
 

NullCoder

Inactive Approved Modder
Jun 8, 2020
110
901
93
21
None
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.
 
  • Like
  • Haha
Reactions: alsya and Raebydett

alsya

Solid & Active Platinian
Original poster
Oct 21, 2021
80
19
8
unknown
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.

Screenshot_2022-01-05-18-24-20-253_com.aide.ui.jpg


It's been resolved thank you