[Snippet]Draw RAM Box

Posts 115 of 19 · Page 1 of 2
[Snippet]Draw RAM Box
Code:
void cDraw::DrawRAMBox(UINT x, UINT y,LPDIRCET3DDEVICE9 pDevice)
{
	MEMORYSTATUSEX RamInfo;
	RamInfo.dwLength = sizeof (RamInfo);
	GlobalMemoryStatusEx (&RamInfo);
	D3D.Draw.Box(x ,y ,115,28,1,0x8F000000,0xFFFFFF00,pDevice,true,false);
	D3D.Draw.GameTextPixel(x+32,y+1,0xFFFF0000,"%i Percent",RamInfo.dwMemoryLoad);
	D3D.Draw.GameTextPixel(x+5,y+12,0xFFFF0000,"%i", (((RamInfo.ullTotalPhys)/(1024*1024)) - ((RamInfo.ullAvailPhys)/(1024*1024))));
	D3D.Draw.GameTextPixel(x+30,y+12,0xFFFF0000,"/%i Mbytes", RamInfo.ullTotalPhys/(1024*1024));//Kotentopf
}
Creditz: Me and Microsoft MSDN
Nice Snippet, thanks for that.
Thanks Brother
Quote Originally Posted by kotentopf View Post
Code:
void cDraw::DrawRAMBox(UINT x, UINT y,LPDIRCET3DDEVICE9 pDevice)
{
	MEMORYSTATUSEX RamInfo;
	RamInfo.dwLength = sizeof (RamInfo);
	GlobalMemoryStatusEx (&RamInfo);
	D3D.Draw.Box(x ,y ,115,28,1,0x8F000000,0xFFFFFF00,pDevice,true,false);
	D3D.Draw.GameTextPixel(x+32,y+1,0xFFFF0000,"%i Percent",RamInfo.dwMemoryLoad);
	D3D.Draw.GameTextPixel(x+5,y+12,0xFFFF0000,"%i", (((RamInfo.ullTotalPhys)/(1024*1024)) - ((RamInfo.ullAvailPhys)/(1024*1024))));
	D3D.Draw.GameTextPixel(x+30,y+12,0xFFFF0000,"/%i Mbytes", RamInfo.ullTotalPhys/(1024*1024));//Kotentopf
}
Creditz: Me and Microsoft MSDN
Looks good but why would you need it?
Quote Originally Posted by CAFlames View Post


Looks good but why would you need it?
Say the person using your hack want to know his ram usage ingame...
Quote Originally Posted by whit View Post
Say the person using your hack want to know his ram usage ingame...
duh... (too short)
Quote Originally Posted by why06 View Post


duh... (too short)

Ima test this

Had to edit a bit, He no give me His drawing text func



Uploaded with ImageShack.us
Quote Originally Posted by kotentopf View Post
Code:
void cDraw::DrawRAMBox(UINT x, UINT y,LPDIRCET3DDEVICE9 pDevice)
{
	MEMORYSTATUSEX RamInfo;
	RamInfo.dwLength = sizeof (RamInfo);
	GlobalMemoryStatusEx (&RamInfo);
	D3D.Draw.Box(x ,y ,115,28,1,0x8F000000,0xFFFFFF00,pDevice,true,false);
	D3D.Draw.GameTextPixel(x+32,y+1,0xFFFF0000,"%i Percent",RamInfo.dwMemoryLoad);
	D3D.Draw.GameTextPixel(x+5,y+12,0xFFFF0000,"%i", (((RamInfo.ullTotalPhys)/(1024*1024)) - ((RamInfo.ullAvailPhys)/(1024*1024))));
	D3D.Draw.GameTextPixel(x+30,y+12,0xFFFF0000,"/%i Mbytes", RamInfo.ullTotalPhys/(1024*1024));//Kotentopf
}
Proof you coded it by hand and didn't c&p.

Code:
LPDIRECT3DDEVICE9 pDevice
Quote Originally Posted by Stephen View Post


Proof you coded it by hand and didn't c&p.

Code:
LPDIRECT3DDEVICE9 pDevice
I dont see how that proves anything
but we all know Kotentopf wouldnt C&P
Quote Originally Posted by whit View Post
I dont see how that proves anything
but we all know Kotentopf wouldnt C&P
He misspelled it. That means he had to write it by hand.
Quote Originally Posted by Stephen View Post


He misspelled it. That means he had to write it by hand.
Ah i see now...
Quote Originally Posted by whit View Post
Ah i see now...
Lol .
Quote Originally Posted by Stephen View Post


Proof you coded it by hand and didn't c&p.

Code:
LPDIRECT3DDEVICE9 pDevice
just made an C&P ready source, i failed by Device xD
Quote Originally Posted by whit View Post
I dont see how that proves anything
but we all know Kotentopf wouldnt C&P
that not true

sometimes i C&P, but then i rewrite it
Quote Originally Posted by kotentopf View Post
that not true

sometimes i C&P, but then i rewrite it
Aww you noob you
Quote Originally Posted by whit View Post
Aww you noob you
Code:
SELECT *
FROM dbo.tblShitList AS SL
WHERE SL.Username = whit
Posts 115 of 19 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?