Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. #pragma comment(lib, "d3dx9.lib")
  2. #include <d3d9.h>
  3. #include <d3dx9.h>
  4.  
  5. PlayerInfo *Main = (PlayerInfo*)0x3715D9A0;
  6.  
  7. class PointerTo;
  8. class PlayerInfo;
  9. class _Object;
  10.  
  11. class PointerTo
  12. {
  13. public:
  14. char pad[4];
  15. PlayerInfo * first;
  16. __int32 index;
  17.  
  18. };
  19.  
  20.  
  21. class PlayerInfo
  22. {
  23. public:
  24.  
  25. __int32 Unknown0; //0000
  26. __int32 index; //0004
  27. __int32 Unknown2; //0008
  28. __int32 Unknown3; //000C
  29. char Name[12]; //0010
  30. char unknown5[12];
  31. _Object* obj; //0028
  32. char unknown7[76];
  33. __int8 IsDead; //0078
  34. __int8 Unknown9; //0079
  35. __int16 Unknown10; //007A
  36. char unknown11[488];
  37. PlayerInfo* Next; //0264
  38. };
  39.  
  40.  
  41.  
  42. class _Object
  43. {
  44. public:
  45. char Pad[4];
  46. D3DXVECTOR3 origin;
  47. };
  48.  
  49.  
  50.  
  51.  
  52. /*
  53.  
  54.  
  55.  
  56. typedef PlayerInfo* (__thiscall *lpGetPlayerByIndex)(unsigned long ulThis,int index, int unk);
  57. lpGetPlayerByIndex GetPlayerByIndex;//3715D9A0
  58.  
  59. GetPlayerByIndex = (lpGetPlayerByIndex)(0x3715D9A0);
  60. unsigned long ulThis = *(unsigned long*)(0x377F3E68);
  61. for ( int i = 0; i < 15; i++ )
  62. {
  63.  
  64. PlayerInfo* pPlayer = GetPlayerByIndex( ulThis,i,0);
  65.  
  66. if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead ==0)
  67.  
  68. //sprintf(szFormat,"%s",pPlayer->Name);
  69. DrawText(20,i*10,255,0,0,255,szFormat);
  70. class classname;
  71. */
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. ERRORS :
  81.  
  82.  
  83. ------ Build started: Project: CNSBase, Configuration: Release Win32 ------
  84. Compiling...
  85. Base.cpp
  86. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(5) : error C2143: syntax error : missing ';' before '*'
  87. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  88. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  89. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(5) : error C2059: syntax error : ')'
  90. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(15) : error C2143: syntax error : missing ';' before '*'
  91. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  92. c:\users\jamshaid\desktop\cnsbase\cnsbase\PlayerClass.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  93. Build log was saved at "file://c:\Users\Jamshaid\Desktop\CNSBase\CNSBase\Release\BuildLog.htm"
  94. CNSBase - 7 error(s), 0 warning(s)
  95. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement