Posts 1–15 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


Originally Posted by
kotentopf
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? 

Originally Posted by
CAFlames
Looks good but why would you need it? 
Say the person using your hack want to know his ram usage ingame...

Originally Posted by
whit
Say the person using your hack want to know his ram usage ingame...
duh...
(too short)

Originally Posted by
kotentopf
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

Originally Posted by
Stephen
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

Originally Posted by
whit
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.

Originally Posted by
Stephen
He misspelled it. That means he had to write it by hand.
Ah i see now...

Originally Posted by
whit
Ah i see now...
Lol .

Originally Posted by
Stephen
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

Originally Posted by
whit
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

Originally Posted by
kotentopf
that not true
sometimes i C&P, but then i rewrite it
Aww you noob you


Originally Posted by
whit
Aww you noob you

Code:
SELECT *
FROM dbo.tblShitList AS SL
WHERE SL.Username = whit
Posts 1–15 of 19 · Page 1 of 2