Structs

Posts 1–2 of 2 · Page 1 of 1
Structs
Hello everyone, i have problem with structs. I need to make function for this but when i create it no work, so what i do wrong?
for example
Code:
if(server.slots)
{
*(long*)(Addr_PlayerPointer+Ofs_5Slot) = 1;
}
and my structs
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;
Look at that:

and

I have it on every struct/function.
These are just structures, could be used for anything. It looks like you're trying to use someone else's menu class though. >_>;
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us