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:
Code:
struct Player
{
int Status;
int rep;
}Player;
So if we use it into a statement it can be used as:
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.
}
2- What does it do?
It basicly execute the function you putted into the struct.
Example:
Code:
struct Example
{
int jump;
}Example;
So we can use it as the statement:
Code:
if(Example.jump)
{
/*Function*/
Jump(900,200,Jumping_cycle);
}
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:
Code:
int Status; //Can be used as int Status = 0;
int Rep; //100
/*This will give the same result as using structs*/
Usage:
Not used:
Code:
int SuperJump;
int NoFallDamage;
int OPK;
int SVP;
if(OPK){...}
If you use it into your hacks:
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
So Playerhacks can be added imediatly into the PlayerFolder
Hope you like it,have fun on mpgh
