Posting the exact error would help.
Sup guys, I added xor encyrption to my base, and it gives me a 2 letter string like: '8l' and so on.. And makes my hack crash.. any ideas?
Posting the exact error would help.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
I think your code is wrong, try to serch the correct one here.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
Code:#include "Includes.h" template <int XORSTART, int BUFLEN, int XREFKILLER> class XorStr { private: XorStr(); public: char s[BUFLEN]; XorStr(const char * xs); ~XorStr() { for ( int i = 0; i < BUFLEN; i++ ) s[i]=0; } }; template <int XORSTART, int BUFLEN, int XREFKILLER> XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr(const char * xs) { int xvalue = XORSTART; int i = 0; for ( ; i < ( BUFLEN - 1 ); i++ ) { s[ i ] = xs[ i - XREFKILLER ] ^ xvalue; xvalue += 1; xvalue %= 256; } s[BUFLEN - 1] = 0; }then i'd use this as a menu item..Code:#define STRING_VISUAL/*-[ Visual ]-*/XorStr<0x1D,13,0x5B99B88B>("\x30\x45\x3F\x76\x48\x51\x56\x45\x49\x06\x7A\x05"+0x5B99B88B).s
Code:pMenu->AddItem(STRING_VISUAL, &Variables.Visual);
Code:#pragma once template <int XORSTART, int BUFLEN, int XREFKILLER> class XorStr { private: XorStr( ); public: char s[BUFLEN]; XorStr( const char* xs ); ~XorStr( ) { for( int i = 0; i < BUFLEN; ++i ) s[i] = 0; } // clear string from stack operator char*( ) { return s; } operator const char*( ) { return s; } }; template <int XORSTART, int BUFLEN, int XREFKILLER> __declspec( noinline ) XorStr<XORSTART, BUFLEN, XREFKILLER>::XorStr( const char* xs ) { int xvalue = XORSTART; for( int i = 0; i < BUFLEN - 1; ++i ) { s[i] = xs[i - XREFKILLER] ^ xvalue; xvalue += 1; xvalue %= 256; } s[BUFLEN - 1] = 0; }Try thatCode:/*Test String*/XorStr<0x51,12,0x7695E86E>("\x05\x37\x20\x20\x75\x05\x23\x2A\x30\x34\x3C"+0x7695E86E).s
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
Last edited by Flengo; 12-26-2012 at 07:19 PM.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
To add an item to the menu.Code:pMenu->AddItem(/*"NX Chams"*/GROUP_ESP, &Variables.Chams, opt_OFFON, 2);
Thats the function.Code:void D3DMenu::AddItem(char *txt, int *var, char **opt, int maxval, int typ) { if (noitems>=(maxitems-3)) return; MENU[noitems]->typ=typ; MENU[noitems]->txt=txt; MENU[noitems]->opt=opt; MENU[noitems]->var=var; MENU[noitems]->maxval=maxval; noitems++; totheight=(noitems*height)+titleheight; }
If it helps.. It's fuck king 7 base.
XOR doesnt work with hans menu.
its got something to do with storing the text in an array i believe.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010