-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
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
Labels
No labels