Logger !!!! :?

Posts 1–8 of 8 · Page 1 of 1
Logger !!!! :?
This Is My Logger Code
What's wrong in it

Code:
#include <fstream>
#include <windows.h>
#include <iostream>
using namespace std;
std::hex;

int i;

		DWORD CShell          =  (DWORD)GetModuleHandleW(L"CShell.dll");
		DWORD pWeaponMgr      = *(DWORD*)(CShell + 0x24FEC);
		std::ofstream file;
		file.open("Logger.txt");
		for(int i = 0; i < 600; i++)
		{ 
			DWORD wapens = *(DWORD*)(weapon +(4*i));
			char * weaponname = (char*)(wapens + 0x0008);
			file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n";		
		}
		file.close();
Please help
Is this your full source code?
Quote Originally Posted by derh.acker View Post
Is this your full source code?
Yes
if you can help me please tell me T_T

---------- Post added at 05:17 PM ---------- Previous post was at 05:17 PM ----------

Quote Originally Posted by [ - _ - ] View Post
Code:
*(DWORD*)(weapon +(4*i));
Shouldn't it be pWeaponMgr instead of weapon?
Not Necessary
Code:
*(DWORD*)(weapon +(4*i));
Shouldn't it be pWeaponMgr instead of weapon?
Sure, you made the code and even cant fix a small error
Dont talk shit, please :|
Quote Originally Posted by Scynix View Post
Sure, you made the code and even cant fix a small error
Dont talk shit, please :|
The Thread Is HELP can u help me

---------- Post added at 11:40 AM ---------- Previous post was at 11:39 AM ----------

Quote Originally Posted by Biesi View Post
You aren't appending the lines to the file
Help Me Please
I know you like helping people
ty
You aren't appending the lines to the file
Quote Originally Posted by sobasoba13 View Post
Help Me Please
Nvm I just read it wrong :/
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us