Thread: Problems with my Fonts
-
31st March 2008 #1
- Join Date
- Aug 2007
- Posts
- 69
Problems with my Fonts
Hey.
I added my self-coded ESP to the Simple Base, it works well but the style of the text is broken (look here:).
PHP Code:void cDraw::FontInit(void)
{
try
{
m_Font = m_pMatSystemSurface->CreateFont();
m_pMatSystemSurface->SetFontGlyphSet(m_Font, "Arial", 10, 450, 0, 0, 0x200);
}
catch (...)
{
}
}
void cDraw::PrintText( int x, int y, DWORD dwColor, const char *pszText, ... )
{
try
{
if( pszText == NULL )
return;
va_list va_alist;
char szBuffer[1024] = { '\0' };
va_start( va_alist, pszText );
vsprintf( szBuffer, pszText, va_alist );
va_end( va_alist );
m_pMatSystemSurface->DrawColoredText(m_Font, x, y, RED(dwColor), GREEN(dwColor), BLUE(dwColor), ALPHA(dwColor), "%s", szBuffer);
}
catch (...)
{
}
}
I tried these fonts: Verdana, Arial, Tahoma.
thoseHacker
-
2nd April 2008 #2
- Join Date
- Aug 2007
- Posts
- 1,267
m_pMatSystemSurface->SetFontGlyphSet(m_Font, "Arial", 14 / 16, 450, 0, 0, 0x200);
-
2nd April 2008 #3
- Join Date
- Aug 2007
- Posts
- 69
Thx Lawgiver, with 14 it works well :p
thoseHacker
-
2nd April 2008 #4
- Join Date
- Aug 2007
- Posts
- 1,267
yeye
oh and btw, whats that try -> catch?
i use it like this
try
{
usehacks
}
catch(...)
{
add_log(nub is using ma hax)
}
but u dont do anything if it failsLast edited by Lawgiver; 2nd April 2008 at 19:15.
-
4th April 2008 #5
- Join Date
- Jul 2007
- Posts
- 11,608
try catch just causes silent crash
How To Contact Me@[b/]
Private Message me for any important issues or just say Hi :) I'm not a robot.
---- (No Support!) ----
Wanna Hang out ? Add me or Join my communities below:
Add be on Discord : dr0ps25#7946 ;-)
or Join Our Community Server :
dr0ps Project-7 Telegram Community Chat: https://t.me/+pAb_mrtrjXg1ZDlk
---- (24/7 Customer Support) ----
Private Message
Email: " support 'at' Project-7. 'net' "
Create Support Ticket on Discord!
Discord Server:
Would you like to work in the cheating industry ? Project-7 is hiring a varient of new employees. We're currently in requisite of quite a few talents to add into the relaunched company now that we have a more professional and precise structure in place to provide real paid work for anyone willing to help our team grow:[/b]
We're currently looking for multiple types of forum moderators and content creators/posters, we're offering quite a few paid positions for you to just talk about cheats on the community!
-
4th April 2008 #6
- Join Date
- Aug 2007
- Posts
- 1,267
Rpg crashes n that shit?
-
5th April 2008 #7
- Join Date
- Aug 2007
- Posts
- 69
With try and catch you can prevent the game for crashing on RPG servers, yes ;)