Structs (AERO can u help me or other coder?)

Posts 1–15 of 32 · Page 1 of 3
Structs (AERO can u help me or other coder?)
Hi i have trouble with the struct
Code:
typedef struct{
int main; // Category Options
int load; // Load Menu
int save; // Save Menu
int reset; // Reset Menu to Defualt
} sinfo;

typedef struct{
int main;		// Category Player
int superjmp;	// Super Jump
int speed;		// Speed 
int stamina;	// Stamina 
int nfd;		// No fall Damage
int nobounds;	// No Boundrys
int fastflag;	// fast flag capture
int fastrepair; // fast repair
int fastmedic;	// fast medic
int fastammo;	// fast ammo
int scope;		// Scope
int spread;		// Spread Ammount
int recoil;		// Recoil ammount
int nowater;	// Removes Water from Stage
int unlammo;
} splayer;

typedef struct{
int main;		// Category Server
int premium;	// Premium
int slots;		// all slots
int roommaster; // Room Master
int	spawn; // quick spawn
int gmmode;		// Enable Gm Mode
} sserver;

typedef struct{
int main;		// category PX
int exp;		// Exp up 50%
int dinar;		// Dinar up 50%
int supermaster;// Supermaster
} spx;

typedef struct{
int main;		// Category D3D
int chams;		// Is Chams Enabled
int chamcolor1; // Foreground color
int chamcolor2; // Background Color
int cross;		// Show Crosshair
int wallhack;	// Players are visable threw walls
int wallcolor;  // color of walls
int fogcolor;   // Fog Color
int wireframe;  // Enable wireframe
int glasswalls; // Walls Become SeeThrew
} sd3d;

typedef struct{
int main;		// Category Options
int move;		// Move Menu
int load;		// Load Menu
int save;		// Save Menu
int reset;		// Reset Menu to Defualt
} soptions;



class cHack{
	public:
		void hthread(void);
	private:
};

// Define SubMenu Structs
extern	splayer		player;
extern	sserver		server;
extern	spx			px;
extern  sd3d		d3d;
extern	soptions	options;
extern	sinfo		info;
// Define Class Pointer
extern cHack *Hack;

and i need to define funtion in my hack but my is dont work, so somebody can write good function?

and on the hack code is this
Code:
// Define Struct Pointers
splayer		player;
sserver		server;
spx			px;
sd3d		d3d;
soptions	options;
sinfo		info;
// Define Class pointer
cHack *Hack;

void cHack::hthread(void){
its my function
Code:
if(server.spawn == true)
{ 
*(unsigned int*)(Addr_QuickSpawn1) = 0; 
*(unsigned int*)(Addr_QuickSpawn2) = 0;
}
try it this way:
Code:
struct Folders
{
int server;
}Folders;

struct server
{
int spawn;
}server;
then for example:

if(server.spawn)
{
*(unsigned int*)(Addr_QuickSpawn1) = 0;
*(unsigned int*)(Addr_QuickSpawn2) = 0;
}

will work this way
But i dont want to edit my structs, i only want to make to their working function to turn on and off the cheat.
if(sserver.slots)
{
*(long*)(PlayerPointer+OFS_SLOT5) = 1;
}

This works if you add it?
Can you give me a addressy me that I have made sure the correct, but i have 2 errors when i paste your function to my base. the errors is:

Code:
1>.\hack.cpp(23) : error C2059: syntax error : '.'
1>.\hack.cpp(24) : error C2143: syntax error : missing ';' before '{'
Edit
the correct code is
if(sserver.slots)
{
*(long*)(PlayerPointer+OFS_SLOT5) = 1;
}
Quote Originally Posted by Khazdor View Post
Can you give me a addressy me that I have made sure the correct, but i have 2 errors when i paste your function to my base. the errors is:

Code:
1>.\hack.cpp(23) : error C2059: syntax error : '.'
1>.\hack.cpp(24) : error C2143: syntax error : missing ';' before '{'
you have msn? i'll take a look for you
I have icq and i trying the yours code. I will be back in 5 minutes.
Quote Originally Posted by Khazdor View Post
I have icq and i trying the yours code. I will be back in 5 minutes.
ok,i only have msn atm :s
Others died
This code doesnt work my addies is actual(maybe)?
#define Ofs_5Slot 0x001021A4
#define Addr_PlayerPointer 0x00BC2248
Quote Originally Posted by Khazdor View Post
This code doesnt work my addies is actual(maybe)?
#define Ofs_5Slot 0x001021A4
#define Addr_PlayerPointer 0xBC2248
idk,ask @TheCamels8about this
Hmm i watched and i have good addys, but bad functions;/ i download msn, so priv me ur msn
Quote Originally Posted by NextGen1 View Post
These guys are real coders, and they can help a lot
Programming - MPGH - MultiPlayer Game Hacking
Visit the C Section and talk to @helldemon @Void @why06 or the many other talented C developers, most of the guys in this section use base and have basic knowledge. (No offense)
thanks for telling me i dont know shit /
ok
Sounds good
sh_Z_sektor can u help me? I cant write to you on priv
Posts 1–15 of 32 · Page 1 of 3
This thread is closed for replies.

Tags for this Thread

None

Talk with us