Results 1 to 3 of 3
  1. #1
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    1

    [QUESTION] why crashes the game to send cmd command on teknomw3 in anyone servers

    is that sometimes try send commands to send cmd on some servers and crashes, or sometimes not on the same servers.

    what is this about?

    thx to all.

    - - - Updated - - -

    Example:

    Code:
    void WelcomeMsg()
    {
        char * killx = (char*)0x1111; // address of example
        char buff[32];
        sprintf_s(buff, "say The kill is: %s", killx);
        sendcmd(0, 0, buff);
    }
    this works sometimes but not others, on the same servers.
    Last edited by niko1921; 06-21-2016 at 05:27 PM.

  2. #2
    殺す必要がある唯一のものは殺されるために準備され人 々である。
    Premium Member
    Hitokiri~'s Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Cancer.
    Posts
    1,195
    Reputation
    24
    Thanks
    863
    My Mood
    Bitchy
    1.) Verify the function prototype
    2.) Verify the address is correct
    3.) Use a bigger buffer. You risk causing a buffer overflow by only using 32 bytes.

    Code:
    const char* something = reinterpret_cast< const char* >( 0xdeaddead );
    char buf[ 1024 ] = { 0 }; // Maximum size of a command
    sprintf_s( buf, "Something is: %s", something );
    
    CBuf_ExecuteText( 0, 0, buf );

  3. #3
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    1
    Yes, on 2 & 3 no problem, but the crash not produces the closing process, otherwise than produces connection timeout to server.
    could be it?, because the crash is random in the same servers, sometimes it happens, sometimes it no.

    Thanks for bothering to answer .
    Last edited by niko1921; 06-22-2016 at 01:48 PM.

Similar Threads

  1. [Solved] Hacks Crash the game
    By F1r3h4VVk in forum Combat Arms Help
    Replies: 17
    Last Post: 07-28-2011, 01:50 PM
  2. [Solved] Question In Modding the game (:
    By JackSTR in forum Call of Duty Modern Warfare Help
    Replies: 2
    Last Post: 06-15-2011, 06:39 AM
  3. [Help] My code keeps crashing the game
    By johnnydicamillo in forum WarRock Hack Source Code
    Replies: 5
    Last Post: 12-17-2010, 10:53 PM
  4. Sendcommandtoconsole crashes the game
    By gruez in forum Call of Duty Black Ops Coding, Programming & Source Code
    Replies: 29
    Last Post: 12-05-2010, 06:13 AM
  5. Crossfire Pub Hack Crashes the game.
    By Kalo2502 in forum CrossFire Hacks & Cheats
    Replies: 3
    Last Post: 08-29-2009, 12:58 PM