Results 1 to 8 of 8
  1. #1
    sle7in's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Insurgency ESP problems (SOURCE)

    Ok i have some source code im trying to compile for Insurgency but I am getting several error and i cannot figure out what I am doing wrong. Can anyone help me out?

    Code:
    void CESP::DrawPlayerBones(Renderer* pPen, CPlayer* pPlayer, D3DCOLOR colorEntity)
    {
        static const std::vector<std::vector<int>> vBones =
        {
            { 55, 54, 53, 52, 56, 57, 58, 59 ), //legs
            { 11, 28, 27, 26, 8, 7, 6, 30, 48, 49, 50 ), //arms
            { 1, 2, 3, 4, 51 } //body
        };
    
        v3 vScreenLastBone = { 0 };
        v3 vScreenPosBone1 = { 0 };
        v3 vScreenPosBone2 = { 0 };
    
        for (auto& dim : vBones)
        {
            for (auto it = dim.begin(); it != dim.end() - 1; it++)
            {
                v3 vBonePos1 = pPlayer->GetBonePosition(*(it+0));
                v3 vBonePos2 = pPlayer->GetBonePosition(*(it+1));
    
                if (it == dim.begin())
                    vScreenPosBone1 = WorldToScreen(vBonePos1);
                else
                    vScreenPosBone1 = vScreenLastBone;
    
                vScreenPosBone2 = WorldToScreen(vBonePos2);
    
                if (vScreenPosBone1.z > 0.001f && vScreenPosBone2.z > 0.001f)
                    pPen->DrawLine(vScreenPosBone1.x, vScreenPosBone1.y, vScreenPosBone2.x, vScreenPosBone2.y, colorEntity, 1.f);
    
                vScreenLastBone = vScreenPosBone2;
            }
        }
    }

  2. #2
    katetem's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    46
    Code:
    for (auto& dim : vBones)
    lol you really?
    IIRC this is the loop for Java.

  3. #3
    MrTittles's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    166
    My Mood
    Twisted
    having same issues ;_; *bump*

  4. #4
    Gray's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Sweden
    Posts
    13,557
    Reputation
    2516
    Thanks
    10,618
    It might help to actually tell people what your issue is.
    Like it or not, this isn't a psychic community.

  5. #5
    MrTittles's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    166
    My Mood
    Twisted
    Error i get:
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2653: 'CESP' : is not a class or namespace name
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'Renderer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'pPen' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'CPlayer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'pPlayer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'D3DCOLOR' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2146: syntax error : missing ')' before identifier 'colorEntity'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2182: 'DrawPlayerBones' : illegal use of type 'void'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2078: too many initializers
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2059: syntax error : ')'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(2): error C2143: syntax error : missing ';' before '{'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(2): error C2447: '{' : missing function header (old-style formal list?)
    1>\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(35): fatal error C1004: unexpected end-of-file found



    And no, i'm not a c++ magician, so i've been fucked clueless ^^
    Last edited by MrTittles; 04-20-2014 at 02:45 AM.

  6. #6
    debohax's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    381
    Reputation
    13
    Thanks
    2,905
    My Mood
    Busy
    Quote Originally Posted by MrTittles View Post
    Error i get:
    is not a class or namespace name
    undeclared identifier
    before identifier 'colorEntity'
    illegal use of type 'void'
    too many initializers
    syntax error : ')'
    missing ';' before '{'
    '{' : missing function header (old-style formal list?)
    fatal error C1004: unexpected end-of-file found

    And no, i'm not a c++ magician, so i've been fucked clueless ^^
    .................................................. ........................^^^^^
    is not a class or namespace name
    (you used two different names for your main file or targeted a file that does not exist or misspelled the main file/class name)

    undeclared identifier
    (You didn't declare it needs to be a string, int, var ect.)

    before identifier 'colorEntity'
    (Requires you to pick a declared color or put an if statement leading to a new line of code if color isn't declared.)

    illegal use of type 'void'
    (You cant use void here)

    too many initializers
    (really???)

    syntax error : ')'
    missing ';' before '{'
    '{' : missing function header (old-style formal list?)
    (These are common sense)

    fatal error C1004: unexpected end-of-file found
    (Code/script was left open need to close perhaps)

    Welcome to programming I have only had a few simple classes start the hard stuff next year, finishing my graphics design degree first :P
    Dead Island Hacks v1.5 By. Debohax

    Contagion Hacks v1.5 By. Debohax


    Debohax Injector v1.0 By. Debohax

    Dying Light Hack v1.3 By. Debohax

    [IMG]https://i303.photobucke*****m/albums/nn132/MercurySilverstone/Decorated%20images/gamegenie.jpg[/IMG]

  7. The Following User Says Thank You to debohax For This Useful Post:

    MrTittles (04-20-2014)

  8. #7
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by MrTittles View Post
    Error i get:
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2653: 'CESP' : is not a class or namespace name
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'Renderer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'pPen' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'CPlayer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'pPlayer' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2065: 'D3DCOLOR' : undeclared identifier
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2146: syntax error : missing ')' before identifier 'colorEntity'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2182: 'DrawPlayerBones' : illegal use of type 'void'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2078: too many initializers
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(1): error C2059: syntax error : ')'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(2): error C2143: syntax error : missing ';' before '{'
    1>c:\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(2): error C2447: '{' : missing function header (old-style formal list?)
    1>\documents\visual studio 2010\projects\insurgency testo\insurgency testo\main.cpp(35): fatal error C1004: unexpected end-of-file found



    And no, i'm not a c++ magician, so i've been fucked clueless ^^
    Do not just C&P a simple code man else you'll almost never be able to solve that kinda easy problems, you might learn programming


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  9. #8
    Unbalanced's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Canada
    Posts
    300
    Reputation
    17
    Thanks
    1,346
    My Mood
    Tired
    Quote Originally Posted by n4n033 View Post
    Do not just C&P a simple code man else you'll almost never be able to solve that kinda easy problems, you might learn programming
    Lol, yeah. I'm a beginner coder and even I can tell this is C+Ped. And for the thread creator, this is the only help I am going to give. #include <iostream>


    Member Since February 6th, 2013
    Donator Since November 2nd, 2013

     

Similar Threads

  1. [Source Code] ESP+Aimbot Source [Detected Tho]
    By MarkHC in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 56
    Last Post: 01-29-2016, 12:47 AM
  2. [Source Code] ESP hitbox source code
    By Maui_Hawaii_USA in forum Crysis 2 Hacks / Cheats
    Replies: 3
    Last Post: 06-07-2012, 10:05 PM
  3. [Help]Koens BFBC2 ESP Problems
    By EarthPig09 in forum Battlefield Bad Company 2 (BFBC2) Hacks
    Replies: 13
    Last Post: 04-12-2010, 07:28 AM
  4. [CODE]ESP + Aimbot for Hidden: Source
    By Retoxified in forum C++/C Programming
    Replies: 2
    Last Post: 02-26-2010, 08:04 PM
  5. [Source Help]Spot the problem in this
    By Samueldo in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 01-15-2010, 04:35 AM