Problems with my Fonts
  1. #1

    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"10450000x200);
        }
        catch (...)
        {
        }
    }

    void cDraw::PrintTextint xint yDWORD dwColor, const char *pszText, ... )
    {
        try
        {
            if( 
    pszText == NULL )
                return;

            
    va_list va_alist;
            
    char szBuffer[1024] = { '\0' };

            
    va_startva_alistpszText );
            
    vsprintfszBufferpszTextva_alist );
            
    va_endva_alist );

            
    m_pMatSystemSurface->DrawColoredText(m_FontxyRED(dwColor), GREEN(dwColor), BLUE(dwColor), ALPHA(dwColor), "%s"szBuffer);
        }
        catch (...)
        {
        }

    I copied the PrintText from ESP Source, so I wonder why it doesn't work.
    I tried these fonts: Verdana, Arial, Tahoma.

    thoseHacker

  2. #2
    m_pMatSystemSurface->SetFontGlyphSet(m_Font, "Arial", 14 / 16, 450, 0, 0, 0x200);

  3. #3
    Thx Lawgiver, with 14 it works well :p

    thoseHacker

  4. #4
    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 fails
    Last edited by Lawgiver; 2nd April 2008 at 19:15.

  5. #5
    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!






  6. #6
    Rpg crashes n that shit?

  7. #7
    With try and catch you can prevent the game for crashing on RPG servers, yes ;)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in