by tHe-knoWn Wed Aug 17, 2011 12:53 pm
You probably don't need this, but im a fgt.
If you create a class (or namespace because im a fgt) that contains a bunch of letters then appending them together people wont be able to hex the strings as easily.
It's a really bad way of doing it, but it works and keeps 12 year old kids from hexing your cheat.
And if you want to make sure they can't hex it at all use the letter class/namespace for the interfaces so if they change them it will crash the game.
Such as:
- Code:
// In your header
namespace letters
{
extern const char* P;
extern const char* r;
extern const char* o;
extern const char* c;
extern const char* l;
extern const char* u;
extern const char* b;
}
// In your CPP file
letters::P = "P";
letters::r = "r";
letters::o = "o";
letters::c = "c";
letters::l = "l";
letters::u = "u";
letters::b = "b";
std::string BuildName()
{
std::string str;
str.append( letters:: P );
str.append( letters:: r );
str.append( letters:: o );
str.append( letters:: c );
str.append( letters:: l );
str.append( letters:: u );
str.append( letters:: b );
return str;
}
There are alot better ways of doing this, but for the sake of only protecting the name of the menu, you really dont have to get really advanced into it.