DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 14 of 14
  1. #1
    Dual-Keyboard Member
    MPGH Member
    moathebest's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    310
    Reputation
    17
    Thanks
    202
    My Mood
    Paranoid

    What is with this code???

    guys i get Send error report using this shit code:




    #include "stdafx.h"

    #define WeaponMgr 0xA68F90
    #define NoReload 0x269C

    DWORD WINAPI Hacks(LPVOID)
    {
    bool noreload=true;

    while(1)
    {
    DWORD CShell=(DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr=*(DWORD*)(CShell+WeaponMgr);

    if(noreload)
    {
    if(pWeaponMgr)
    {
    for(int i=0; i<560;i++)
    {
    if((*DWORD*)((*DWORD*)(CShell+WeaponMgr))+(4*i)) ) !=NULL
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
    }
    }
    }
    Sleep(100);
    }

    }

    bool Ready2Hook()
    {
    if(GetModuleHandleA("CShell.dll") != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
    return 1;
    return 0;
    }

    DWORD WINAPI Wait(LPVOID)
    {
    while(!Ready2Hook()) Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return 0;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {

    MessageBoxA(0, "Credits- moathebest","Beta Hack", 0);


    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }

    What should i do???
    Last edited by moathebest; 11-22-2011 at 08:04 AM.

  2. #2
    Member
    MPGH Member
    GunBoy120's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    In my house lol
    Posts
    102
    Reputation
    10
    Thanks
    5
    My Mood
    Cheerful
    why you put it?
    //if((*DWORD*)((*DWORD*)(CShell+WeaponMgr))+(4*i)) ) !=NULL
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;

  3. #3
    Threadstarter
    Dual-Keyboard Member
    MPGH Member
    moathebest's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    310
    Reputation
    17
    Thanks
    202
    My Mood
    Paranoid
    Quote Originally Posted by GunBoy120 View Post
    why you put it?
    sry i was trying to fix it when it gave me error and i just copied it from C++ so here u go i edited it

  4. #4
    Member
    MPGH Member
    GunBoy120's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    In my house lol
    Posts
    102
    Reputation
    10
    Thanks
    5
    My Mood
    Cheerful
    remove this
    #include "stdafx.h"
    and put:
    #include <windows.h>

  5. #5
    MPGH Member
    Swag's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Netherlands
    Posts
    1,611
    Reputation
    19
    Thanks
    1,806
    My Mood
    Amused
    check the pointers.
    it think they are right but i can't check
    (i'm on my dads pc now)xd
    Last edited by Swag; 11-22-2011 at 09:28 AM.

  6. #6
    Former Staff
    MPGH Member
    Donator
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,650
    Reputation
    274
    Thanks
    1,899
    My Mood
    Amused
    Lol
    I always create an empty project. I don´t use precompiled header files >_>
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  7. The Following User Says Thank You to A$IAN For This Useful Post:

    xceman (11-23-2011)

  8. #7
    Dual-Keyboard Member
    MPGH Member
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    248
    Quote Originally Posted by GunBoy120 View Post
    remove this and put:
    Lolz xD no noobtube xD
    Do you know what that is ?

    #include <windows.h> can be included in #include "stdafx.h"
    He can compile the dll.. So why would you change the headers? He has all the functions he needs...

    Edit:

    Seriously, there is no reason you don't get a send error report... Hint: "Leecher"
    Last edited by Brimir; 11-23-2011 at 09:32 AM.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  9. #8
    Member
    MPGH Member
    GunBoy120's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    In my house lol
    Posts
    102
    Reputation
    10
    Thanks
    5
    My Mood
    Cheerful
    @Brimir
    instead of trying to correct me, why not help him?

  10. The Following User Says Thank You to GunBoy120 For This Useful Post:

    12au12au (11-23-2011)

  11. #9
    Choob
    MPGH Member
    12au12au's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    36
    Reputation
    8
    Thanks
    0
    Agreed, btw what is a "leecher" im curious

  12. #10
    MPGH Member
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,872
    Reputation
    119
    Thanks
    3,936
    My Mood
    Angelic
    Quote Originally Posted by 12au12au View Post
    Agreed, btw what is a "leecher" im curious
    A leecher is who steals something form others and claims it's his
    OPPA GANGNAM STYLE!!!

  13. The Following User Says Thank You to DaRk For This Useful Post:

    12au12au (11-23-2011)

  14. #11
    Advanced Member
    MPGH Member
    skkhan's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    ON the streets
    Posts
    234
    Reputation
    10
    Thanks
    21
    My Mood
    Drunk
    [FONT="Comic Sans MS"][COLOR="Olive"][SIZE="3"][B]nice post 1 question i dnt get any of that

  15. The Following User Says Thank You to skkhan For This Useful Post:

    12au12au (11-23-2011)

  16. #12
    Choob
    MPGH Member
    12au12au's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    36
    Reputation
    8
    Thanks
    0
    Thanks im going too "Thanks" you

  17. #13
    Dual-Keyboard Member
    MPGH Member
    maxpower439's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Hell
    Posts
    410
    Reputation
    12
    Thanks
    79
    My Mood
    Hungover
    Try making it an empty project and adding-> new item -> .cpp file -> code goes in
    make sure ur addies and pointers are right http://www.mpgh.net/forum/242-crossf...dys-v1080.html
    thats all please thank
    Life Is Simple , We Complicate It.


  18. The Following User Says Thank You to maxpower439 For This Useful Post:

    moathebest (11-24-2011)

  19. #14
    Dual-Keyboard Member
    MPGH Member
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    248
    Quote Originally Posted by GunBoy120 View Post
    @Brimir
    instead of trying to correct me, why not help him?
    I gave him a very good hint:
    "Leecher"

    My 2nd hint is, "debug your program. You will find it vey fast."
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

Similar Threads

  1. [Source Code] What Wrong with this code?
    By DaRk in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 08-06-2011, 12:55 PM
  2. [Source Code] what worng with this code
    By nageeb123 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 08-04-2011, 09:10 AM
  3. Bad Syntax - What is wrong with this code?
    By HACKINGPIE in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 01-19-2011, 12:12 AM
  4. What is wrong with this code?
    By t7ancients in forum C++/C Programming
    Replies: 10
    Last Post: 10-19-2009, 01:58 PM
  5. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 06:57 AM