#include <game/client/components/console.h>
how do i then execute a line using
GameConsole::CInstance::ExecuteLine()
for some reason it's saying it's undefined (edited)const char test = "say hi"; CGameConsole::CInstance::ExecuteLine(&test);
error: invalid conversion from 'const char*' to 'char' [-fpermissive]
334 | const char test = "say hi";
| ^~~~~~~~
| |
| const char*
error: cannot convert 'char**' to 'const char*'
335 | CGameConsole::CInstance::ExecuteLine(&test);
| ^~~~~
| |
| char**
for test error: cannot call member function 'void CGameConsole::CInstance::ExecuteLine(const char*)' without object
335 | CGameConsole::CInstance::ExecuteLine(test);
| ^
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
334 | char *test = "say hi";
apart from a warn butchar aBuf[12];str_copy(aBuf, "say hi"; sizeof(aBuf));m_pClient->Console()->ExecuteLine(aBuf);
make
auchmake
macht single core und nproc gibt dir deine thread anzahl und macht so schnell es gehtmake -j$(nproc) DDNet-Server
I assume the DDNet-Server part is important to not build fialing toolsCClientData cData = m_aClients[i];
Core was generated by
./DDRace64-Server_sql -f servers/8303.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fccdf84c45c in anti_bot::enter_hook (this=this@entry=0x561015b1dac0, self=self@entry=0x7fccdf85a9c0 )
at antibot.h:982
982 antibot.h: No such file or directory.
[Current thread is 1 (Thread 0x7fccdeabd200 (LWP 31366))]
(gdb) bt
#0 0x00007fccdf84c45c in anti_bot::enter_hook (this=this@entry=0x561015b1dac0, self=self@entry=0x7fccdf85a9c0 )
...GetCharacter() && GetCharacter()->m_FreezeTime