Results 1 to 11 of 11
  1. #1
    LeoCooper's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Cool

    A little bit help?

    I have done a hack in Visual C++, but I have a problem. When I try to debug it this happens: [PHP]------ Build started: Project: Hack, Configuration: Debug Win32 ------
    Hack.cpp
    Hack.cpp(10): error C2143: syntax error : missing ';' before '*'
    Hack.cpp(10): error C2065: 'ient' : undeclared identifier
    Hack.cpp(11): error C2065: 'ient' : undeclared identifier
    Hack.cpp(42): error C2065: 'boxes' : undeclared identifier
    Hack.cpp(45): error C2065: 'boxes' : undeclared identifier
    Hack.cpp(49): error C2065: 'boxes' : undeclared identifier
    Hack.cpp(53): error C2065: 'VK_NUMPAD' : undeclared identifier
    Hack.cpp(53): error C2143: syntax error : missing ')' before 'constant'
    Hack.cpp(53): error C2059: syntax error : ')'
    Hack.cpp(53): error C2143: syntax error : missing ';' before '{'
    Hack.cpp(54): error C2065: 'spread' : undeclared identifier
    Hack.cpp(59): error C2065: 'spread' : undeclared identifier
    Hack.cpp(65): error C2065: 'spread' : undeclared identifier
    Hack.cpp(68): fatal error C1075: end of file found before the left brace '{' at 'Hack.cpp(39)' was matched
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    [/PHP]

    Can somebody help me?

    The source code what gets that error: [PHP]// Hack.cpp : main project file.

    #include "stdafx.h"
    #include <windows.h>
    #include <shellapi.h>
    #pragma comment(lib,"shell32.lib")

    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD L***ient = ( DWORD* )( 0x3776FCC8 );
    void* CONoff = ( void* )*( DWORD* )( L***ient + 0x208 );

    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;

    return false;
    }
    void MemCopy(void* Dest, const void* Src, int Len)
    {
    DWORD OldProtect;
    DWORD OldProtect2;
    VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
    memcpy(Dest, Src, Len);
    VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
    FlushInstructionCache(GetCurrentProcess(), Dest, Len);
    }
    void main()
    {

    if(GetAsyncKeyState(VK_NUMPAD1)<0){
    if(boxes){
    PushToConsole("ModelDebug_DrawBoxes 0");
    PushToConsole("SkelModelStencil 0");
    boxes = false;
    } else {
    PushToConsole("ModelDebug_DrawBoxes 1");
    PushToConsole("SkelModelStencil 1");
    boxes = true;
    }
    }

    if(GetAsyncKeyState(VK_NUMPAD 2)<0){
    if(spread){
    PushToConsole("PerturbRotationEffect 3.000000");
    PushToConsole("PerturbIncreaseSpeed 3.000000");
    PushToConsole("PerturbDecreaseSpeed 9.000000");
    PushToConsole("PerturbWalkPercent 0.500000");
    spread = false;
    } else {
    PushToConsole("PerturbRotationEffect 0.000000");
    PushToConsole("PerturbIncreaseSpeed 0.000000");
    PushToConsole("PerturbWalkPercent 0.000000");
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
    spread = true;
    }
    } [/PHP]

  2. #2
    rocker340's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    in my house
    Posts
    304
    Reputation
    12
    Thanks
    76
    you are missing this

    bool boxes = false;
    bool spread = false;

    and that in void main

    If you need a Lo/Ck/Er/Z invite, PM me! Lo/Ck/Er/Z is a promotion site to watch videos for PTZ, and redeem cool electronics for free by trading in PTZ




  3. #3
    LeoCooper's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Cool
    What should I do then?

  4. #4
    rocker340's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    in my house
    Posts
    304
    Reputation
    12
    Thanks
    76
    learn to code lmfao come on this isnt that hard after u add that build the solutiona gain and if there are any errors fix them

    If you need a Lo/Ck/Er/Z invite, PM me! Lo/Ck/Er/Z is a promotion site to watch videos for PTZ, and redeem cool electronics for free by trading in PTZ




  5. The Following User Says Thank You to rocker340 For This Useful Post:

    matypatty (06-19-2010)

  6. #5
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by rocker340 View Post
    you are missing this

    bool boxes = false;
    bool spread = false;

    and that in void main
    No that wrong. You Cant Put it in Void Main because there is no loop there so everytime it is call it will just make Boxes and spread = false


    i say the problem is

    U have to Add
    bool boxes = false;
    bool spread = false;

    at the top Under Include no t in any void.

    and change L***ient

    Because that looks like L 3 multiplys ient

    and that why it said ient not declared. So change L***ient to something else. It dont have to be L T CLIENT

    U can put the whole thing as " W "if u want
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  7. #6
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    You also put a space between VK_NUMPAD and 2

  8. #7
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    ya i think it might be a good idea to learn a bit more C++ before you start trying to make hacks...

  9. #8
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    well since theres no loop define this in your globals
    bool boxes = false;
    bool spread = false;

    Instaed of L***ient change to LT Client (no spaces)

  10. #9
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by whit View Post
    well since theres no loop define this in your globals
    bool boxes = false;
    bool spread = false;

    Instaed of L***ient change to LT Client (no spaces)
    It dont have to be LT Client. It can be any thing
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  11. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Ye but in all the pub bases thats whats it like

  12. #11
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    Copy and paste fail

    /Solved
    /Closed
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help] I need a little bit help.
    By Jefjet11 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 07-08-2011, 12:15 PM
  2. Need a little bit of help
    By Ed in forum General
    Replies: 9
    Last Post: 03-18-2011, 02:28 AM
  3. Need a little bit of help
    By Chickente in forum Combat Arms Mod Discussion
    Replies: 6
    Last Post: 01-08-2011, 09:20 PM
  4. Little bit of D3D hooking help
    By Crash in forum C++/C Programming
    Replies: 8
    Last Post: 06-14-2010, 02:20 PM
  5. warrock helps hus a little bit.
    By SHadyDAGGER in forum WarRock - International Hacks
    Replies: 3
    Last Post: 01-26-2008, 12:46 PM