HelpPrinting Player Names

Posts 1–3 of 3 · Page 1 of 1
Printing Player Names
Hey guys,

so i want to print into my console all player names, how can i do this?

I tried with char but it keeps printing weird stuff and also with wchar_t but then i only get numbers.

What is the correct way to print out names with wchar_t?
Get player name from player info.

Code:
typedef struct player_info_s
{
	char			name[32];
	int				userID;
	char			guid[33];
	unsigned long	friendsID;
	char			friendsName[32];
	bool			fakeplayer;
	bool			ishltv;
	unsigned long	customFiles[4];
	unsigned char	filesDownloaded;
} player_info_t;
Quote Originally Posted by legit_player View Post
Get player name from player info.

Code:
typedef struct player_info_s
{
	char			name[32];
	int				userID;
	char			guid[33];
	unsigned long	friendsID;
	char			friendsName[32];
	bool			fakeplayer;
	bool			ishltv;
	unsigned long	customFiles[4];
	unsigned char	filesDownloaded;
} player_info_t;
am i reading it right?
Code:
char Playernames[64];
	                        DWORD PlayerInfoClass = Mem.Read<DWORD>(EngineBase + 0x523C);
				DWORD PlayerInfoClass1 = Mem.Read<DWORD>(PlayerInfoClass + 0x38);
				DWORD PlayerInfoClass2 = Mem.Read<DWORD>(PlayerInfoClass1 + 0xC);
				DWORD PlayerInfoClass3 = Mem.Read<DWORD>(PlayerInfoClass2 + 0x20 + (i - 1) * 0x34);
                                Playernames[i] = Mem.Read<char>(PlayerInfoClass3 + 0x10)
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us