Solved Noob Problem D3DMenu

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

markrpg

Newbie
Oct 3, 2012
3
212
1
Hi,

I have a problem with the D3DMenu source..

C++:
DrawTextA("GAME NAME HERE", 190 , 30 , fontWhite);
This line of code returns 2 errors

1. for parameter "GAME NAME HERE" i get error "argument of type "const char *" is incompatible with parameter of type "HDC"
2. for parameter fontWhite i get error "argument of type "D3DCOLOR is incompatible with paramter of type "LPRECT""

I have Windows 8.1 64bit and am using MultiByte Character Set.

Please help I normally never ask for help and its probably something so stupid but I cant figure it out.

Cheers
Mark
 

markrpg

Newbie
Oct 3, 2012
3
212
1
Ok guys I found my problem I wrote Draw_Text insted of DrawText....
thanks for your quick response though ! top community.
 

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Hey, here some snipets, the rest you can figure out on your own and use it in your own functions, its just a examble ;)

C++:
LPCSTR MenuTitle = "YourTitle";
int menuX1 = 39;
int menuY1 = 10;
ID3DXFont *t_font = 0;


void DrawHeadline()
{
	int moveLeftRight = 240; //to move it to the point you want 
	int moveUpDown = 12;     //to move it to the point you want 

	RECT FontTitle = {menuX1 + moveLeftRight, menuY1 + moveUpDown, menuX1+500 + moveLeftRight, menuY1+30 + moveUpDown };
	t_font->DrawTextA( NULL, MenuTitle, -1, &FontTitle, NULL, YELLOW );
}
And yeh .. dont forget to init the Font :)

C++:
if (t_font==0) D3DXCreateFont(dev, 14, 0, FW_REGULAR, 0, 0, 1, 0, 0, 0 | FF_DONTCARE, TEXT("Arial"), &t_font);
 

markrpg

Newbie
Oct 3, 2012
3
212
1
This is a function used in the D3Dmenu tutorial, I checked and it is using the winapi function insted of fleeps function, so now im checking to see if my references are correct because this function should be in the source somewhere..
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods