lundi 17 mars 2014

[Help] Unable to compile due to errors topic




I'm trying to add this to my d3d plugin (yes, im a noob) but I juts keep getting errors stating that certain identifiers are undefined, ect.

http://www.unknowncheats.me/forum/ru...dtoscreen.html


Code:


#define MODEL_PLAYER_1 (Stride == 40 && NumVertices == 556 && primCount == 920)
#define MODEL_PLAYER_2 (Stride == 40 && NumVertices == 582 && primCount == 992)
#define MODEL_PLAYER_3 (Stride == 40 && NumVertices == 1858 && primCount == 3034)
#define MODEL_PLAYER_4 (Stride == 40 && NumVertices == 1385 && primCount == 2612)
#define MODEL_PLAYER_5 (Stride == 40 && NumVertices == 156 && primCount == 240)
#define MODEL_PLAYER_6 (Stride == 40 && NumVertices == 1524 && primCount == 2441)
#define MODEL_PLAYER (MODEL_PLAYER_1 || MODEL_PLAYER_2 || MODEL_PLAYER_3 || MODEL_PLAYER_4 || MODEL_PLAYER_5 || MODEL_PLAYER_6)

CONST D3DCOLOR Green    = D3DCOLOR_ARGB(255, 0, 255, 0);
void DrawPoint(IDirect3DDevice9* Device, int baseX, int baseY, int baseW, int baseH, D3DCOLOR Cor)
{
    D3DRECT BarRect = { baseX, baseY, baseX + baseW, baseY + baseH };
    Device->Clear(1, &BarRect, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, Cor, 0,  0);
}

//in dip:
if(MODEL_PLAYER)
{
        int xx, yy;
        D3DMATRIX matrix;
        D3DXVECTOR4 position;
        D3DXVECTOR4 input;
        D3DVIEWPORT9 viewport;
   
        Device->GetVertexShaderConstantF(0, (float *)&matrix, 4);
        Device->GetViewport(&viewport);

        input.x = 0.0f;
        input.y = 0.0f;
        input.z = 0.0f;
        input.w = 0.0f;

        D3DXMatrixTranspose((D3DXMATRIX *)&matrix, (D3DXMATRIX *)&matrix);

        position.x = input.x * matrix._11 + input.y * matrix._21 + input.z * matrix._31 + matrix._41;
        position.y = input.x * matrix._12 + input.y * matrix._22 + input.z * matrix._32 + matrix._42;
        position.z = input.x * matrix._13 + input.y * matrix._23 + input.z * matrix._33 + matrix._43;
        position.w = input.x * matrix._14 + input.y * matrix._24 + input.z * matrix._34 + matrix._44;

        xx = ((position.x / position.w) * (viewport.Width / 2)) + viewport.X + (viewport.Width / 2);
        yy = viewport.Y + (viewport.Height / 2) - ((position.y / position.w) * (viewport.Height / 2));

        DrawPoint(Device, xx, yy, 8, 8, Green); 
}


What am doing wrong? Also, please understand that although I am trying to learn C++, i want to use cheats. Yes, I want your help because im a skid, but it's not like i'm copypasting shit and selling it or claiming to be a super leet coder

Ill appreciate any help given, thanks





Aucun commentaire:

Enregistrer un commentaire