Using structures
Hello,
Today we are going to discuss how to use structures.
This guides include:
1- What are structs?
2- What does it do?
3- Where can i use it?
4- Is it helpfull?
1- What are structs?
Well,structs are actually?
They are "Objects" with data information in it.
It can be used in DirectX coding,WIN32,Dll,..
They can be used to store data in.
Example:
So if we use it into a statement it can be used as:
2- What does it do?
It basicly execute the function you putted into the struct.
Example:
So we can use it as the statement:
3- Where can i use it?
You can actually use it anywhere you want.
Like:
1- Game.
2- Program.
3- Anywhere actually.
4- Is it helpfull?
Sure it can.
But you can also use functions like:
Usage:
Not used:
If you use it into your hacks:
So Playerhacks can be added imediatly into the PlayerFolder
Hope you like it,have fun on mpgh
Today we are going to discuss how to use structures.
This guides include:
1- What are structs?
2- What does it do?
3- Where can i use it?
4- Is it helpfull?
1- What are structs?
Well,structs are actually?
They are "Objects" with data information in it.
It can be used in DirectX coding,WIN32,Dll,..
They can be used to store data in.
Example:
Code:
struct Player
{
int Status;
int rep;
}Player;
Code:
if(Player.Status)
{
MessageBoxA(NULL, "Succesfully used","Information", NULL); //Our function will be putted in here.
}
if(Player.rep)
{
MessageBoxA(NULL, "Reputation: No rep.","Rep", NULL); //Our function will be putted in here also.
}
It basicly execute the function you putted into the struct.
Example:
Code:
struct Example
{
int jump;
}Example;
Code:
if(Example.jump)
{
/*Function*/
Jump(900,200,Jumping_cycle);
}
You can actually use it anywhere you want.
Like:
1- Game.
2- Program.
3- Anywhere actually.
4- Is it helpfull?
Sure it can.
But you can also use functions like:
Code:
int Status; //Can be used as int Status = 0; int Rep; //100 /*This will give the same result as using structs*/
Not used:
Code:
int SuperJump;
int NoFallDamage;
int OPK;
int SVP;
if(OPK){...}
Code:
struct Player //Now we now it is a player hack
{
int SuperJump;
int NoFallDamage;
int OPK;
int SVP;
}Player;
if(Player.OPK){...} //Here we already now it is a player hack
Hope you like it,have fun on mpgh

// too short
