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

Solved undeclared identifier causing 39 errors

Status
Not open for further replies.

Sbyky

Approved Modder
Original poster
Approved Modder
Oct 4, 2022
75
2,569
183
Pakistan
hi everyone i ran into this while making LGL Mod Menu does anyone know how to fix this? thank you



i tried all the options that Android Studio offers but all then causing different errors
 
Last edited:

Sbyky

Approved Modder
Original poster
Approved Modder
Oct 4, 2022
75
2,569
183
Pakistan
just had to put this directly under the global variables

Code:
struct My_Patches {
    MemoryPatch NoCollision1, NoCollision2, NoCollision3, Cash, Cars, Colors, Wheels, Vinyls, Tracks1, Tracks2, Tracks3, Tracks4, Tracks5;
} hexPatches;
like this

Code:
#include <list>
#include <vector>
#include <string.h>
#include <pthread.h>
#include <thread>
#include <cstring>
#include <jni.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <dlfcn.h>
#include "Includes/Logger.h"
#include "Includes/obfuscate.h"
#include "Includes/Utils.h"
#include "KittyMemory/MemoryPatch.h"
#include "Menu/Setup.h"

//Target lib here
#define targetLibName OBFUSCATE("libFileA.so")

#include "Includes/Macros.h"

bool feature1, feature2, featureHookToggle, Health;
int sliderValue = 1, level = 0;
void *instanceBtn;

struct My_Patches {
    MemoryPatch NoCollision1, NoCollision2, NoCollision3, Cash, Cars, Colors, Wheels, Vinyls, Tracks1, Tracks2, Tracks3, Tracks4, Tracks5;
} hexPatches;
and all the errors were gone
 
Last edited:
Status
Not open for further replies.