Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Error (making a function)


    PhoenixRaider
     Share

    Recommended Posts

    I am trying to make a function ..

     

    Function

    void AddHigh(int hvariable,int x,char *string1,char *string2,DWORD Color1,DWORD Color2)
    {
    if(highlight[hvariable]==1)
    DrawText(*string1, 126, x, Color1); // = 0xFF00FF00
    else
    DrawText(*string1, 126, x, Color2); // = 0xFFFF0000
    
    if(highlight[hvariable]==1)
    DrawText(*string2, 15, x, Color1);
    else
    DrawText(*string2, 15, x, Color2);
    }

     

    Used like this

    AddHigh(5,160,Staminastr1,Staminastr2,0xFF00FF00,0xFFFF0000);

     

    Error

    1>------ Build started: Project: GHB D3D BASE, Configuration: Release Win32 ------
    1>Compiling...
    1>base.cpp
    1>c:\users\propriétaire\desktop\GHB d3d base(old menu)\menufunc.h(6) : error C2665: 'DrawTextA' : none of the 2 overloads could convert all the argument types
    1>		c:\users\propriétaire\desktop\GHB d3d base(old menu)\draw.h(8): could be 'void DrawTextA(char *,int,int,DWORD)'
    1>		while trying to match the argument list '(char, int, int, DWORD)'
    1>c:\users\propriétaire\desktop\GHB d3d base(old menu)\menufunc.h(8) : error C2665: 'DrawTextA' : none of the 2 overloads could convert all the argument types
    1>		c:\users\propriétaire\desktop\GHB d3d base(old menu)\draw.h(8): could be 'void DrawTextA(char *,int,int,DWORD)'
    1>		while trying to match the argument list '(char, int, int, DWORD)'
    1>c:\users\propriétaire\desktop\GHB d3d base(old menu)\menufunc.h(11) : error C2665: 'DrawTextA' : none of the 2 overloads could convert all the argument types
    1>		c:\users\propriétaire\desktop\GHB d3d base(old menu)\draw.h(8): could be 'void DrawTextA(char *,int,int,DWORD)'
    1>		while trying to match the argument list '(char, int, int, DWORD)'
    1>c:\users\propriétaire\desktop\GHB d3d base(old menu)\menufunc.h(13) : error C2665: 'DrawTextA' : none of the 2 overloads could convert all the argument types
    1>		c:\users\propriétaire\desktop\GHB d3d base(old menu)\draw.h(8): could be 'void DrawTextA(char *,int,int,DWORD)'
    1>		while trying to match the argument list '(char, int, int, DWORD)'
    1>Build log was saved at "file://c:\Users\Propriétaire\Desktop\GHB D3D BASE(old menu)\Release\BuildLog.htm"
    1>GHB D3D BASE - 4 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    They all point to DrawText ..

     

    DrawText Function

    void DrawText(char *text, int x, int y, DWORD color)
    {
    m_pMenu->DrawText((float)x+1, (float)y  , D3DCOLOR_ARGB( 255, 0, 0, 0 ), text);
    m_pMenu->DrawText((float)x-1, (float)y  , D3DCOLOR_ARGB( 255, 0, 0, 0 ), text);
    m_pMenu->DrawText((float)x  , (float)y+1, D3DCOLOR_ARGB( 255, 0, 0, 0 ), text);
    m_pMenu->DrawText((float)x  , (float)y-1, D3DCOLOR_ARGB( 255, 0, 0, 0 ), text);
    m_pMenu->DrawText((float)x, (float)y, color, text);
    }

     

    How could I fix that ?

     

    - Thanks

    Link to comment
    Share on other sites

    learning c++ should fix all errors

     

    Why bother to post , if you don't know the answer ?

    You try to act smart because your a mod.

    Here's something , your not.

    I have fixed these errors yesterday.

    So please , don't play it smart.

     

    - Thank You

    Link to comment
    Share on other sites

    lol i know why, but instead of saying why it gives errors u can figure it out by yourself (if you learned c++ u know whats not correct)

     

    ****

     

     

    edit: are you PhoenixRaven from mp-hacks.net?

    Edited by Hayley
    Link to comment
    Share on other sites

    lol i know why, but instead of saying why it gives errors u can figure it out by yourself (if you learned c++ u know whats not correct)

     

    ****

     

     

    edit: are you PhoenixRaven from mp-hacks.net?

     

    yes he is, aka mario, aka striker... phoenix, shut up xD hayley aka lacey aka max, aka. ... aka gordon says the true

     

    closed

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...