Solved Little help in this code

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

justintcs

Newbie
Full Member
Jul 13, 2012
30
302
0
C++:
HRESULT WINAPI DrawIndexedPrimitive(LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE Type, 
                      UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
 LPDIRECT3DVERTEXBUFFER8 Stream_Data;
 UINT Stride = 0;

 if(pDevice->GetStreamSource(0, &Stream_Data, &Stride) == D3D_OK)
 Stream_Data->Release();
 //code
 bool charms;
  
 if(Stride == 40 && charms || Stride == 44 && charms)
 {
	 pDevice->SetRenderState(D3DRS_ZENABLE,false);
   pDevice->SetRenderState(D3DRS_LIGHTING,true);
   pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
   pDevice->SetRenderState(D3DRS_AMBIENT,RED);
   pDevice->DrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
   pDevice->SetRenderState(D3DRS_ZENABLE,true);
   pDevice->SetRenderState(D3DRS_LIGHTING,true);
   pDevice->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_FLAT);
   pDevice->SetRenderState(D3DRS_AMBIENT,GREEN);
 }
  if ((GetAsyncKeyState(VK_DELETE)&1) == 1) //Delete Key to activate charms
	  charms = !charms;// COlour Charms

  return DrawIndexedPrimitive_Pointer(pDevice, Type, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}

I keep on get this error
C++:
1>------ Build started: Project: wallhack, Configuration: Release Win32 ------
1>Build started 30/07/2012 10:24:40 PM.
1>InitializeBuildStatus:
1> Touching "Release\wallhack.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> wallhack.cpp
1>wallhack.cpp(158): error C2065: 'BaseVertexIndex' : undeclared identifier
1>wallhack.cpp(158): error C2065: 'MinVertexIndex' : undeclared identifier
1>wallhack.cpp(158): error C2065: 'startIndex' : undeclared identifier
1>wallhack.cpp(158): error C2065: 'primCount' : undeclared identifier
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.33
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
HELP!!
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,188
12,638
76
I know it isn't really a solution to the problem but I recommend you to first learn c++ before you start off copy pasting source codes and expecting them to work ;)
 

BlackPitchPL

Coder
Full Member
Nobleman
May 24, 2012
166
783
0
undeclared identifier-> It's mean that YOU UNDECLARED IDENTIFIER . You have to declare it
 

BlackPitchPL

Coder
Full Member
Nobleman
May 24, 2012
166
783
0
#define STRIDE 0
#define NUMVERTS 1
#define PRIMCOUNT 2
#define STARTINDEX 3
#define LOGVALUES 4
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts