Skip to content

CS:GO does not accept formatting in IClient::Disconnect. #302

Description

@CookStar

CS:GO does not accept formatting in IClient::Disconnect. #293
https://github.com/alliedmodders/hl2sdk/blob/csgo/public/iclient.h#L48

Compilation error output

In file included from /home/jonathan/srcds/Source.Python/src/core/modules/players/players_wrap.cpp:40:0:
/home/jonathan/srcds/Source.Python/src/core/modules/players/players_wrap.h: In static member function ‘static void IClientExt::disconnect(IClient*, const char*)’:
/home/jonathan/srcds/Source.Python/src/core/modules/players/players_wrap.h:60:35: error: no matching function for call to ‘IClient::Disconnect(const char [3], const char*&)’
   pClient->Disconnect("%s", reason);
                                   ^
/home/jonathan/srcds/Source.Python/src/core/modules/players/players_wrap.h:60:35: note: candidate is:
In file included from /home/jonathan/srcds/Source.Python/src/core/modules/players/players_wrap.cpp:37:0:
/home/jonathan/srcds/Source.Python/src/hl2sdk/csgo/public/iclient.h:48:15: note: virtual void IClient::Disconnect(const char*)
  virtual void Disconnect( const char *reason ) = 0;
               ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions