[DiscordArchive] That's weird, does it always return entry 51?
[DiscordArchive] That's weird, does it always return entry 51?
Archived author: Kitzunu • Posted: 2020-04-28T22:46:36.114000+00:00
Original source
no crashes without it
Archived author: H0lysp4nk • Posted: 2020-04-28T22:46:54.943000+00:00
Original source
Could always try:
```
#include<iostream>
...
static bool HandleAcoreStringCommand(ChatHandler* handler, char const* args)
{
const int String = args[1];
if (!args)
{
return true;
}
else
{
std::cout << ">> ACoreString Entry from CMD = " << String << std::endl;
handler->PSendSysMessage(handler->GetAcoreString(String));
return true;
}
}
```
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:02.879000+00:00
Original source
Include iostream at the top
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:09.063000+00:00
Original source
and paste the std::cout stuff in there
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:16.815000+00:00
Original source
it'll output directly to the console
Archived author: Kitzunu • Posted: 2020-04-28T22:49:09.109000+00:00
Original source
gonna try handler->PSendSysMessage(String);
Archived author: H0lysp4nk • Posted: 2020-04-28T22:49:16.271000+00:00
Original source
okay
Archived author: Kitzunu • Posted: 2020-04-28T22:49:23.812000+00:00
Original source
well
Archived author: Kitzunu • Posted: 2020-04-28T22:49:26.639000+00:00
Original source
this is interesting
![[Image: unknown.png?ex=690bd495&is=690a8315&hm=e...13991f998&]](https://cdn.discordapp.com/attachments/284323424032129024/704826770666553394/unknown.png?ex=690bd495&is=690a8315&hm=e58ed4e778505e5a851aab00c054340786affc9fcb805a26f0dcaae13991f998&)
Archived author: Kitzunu • Posted: 2020-04-28T22:49:58.250000+00:00
Original source
now all I have is this
```cpp
{
handler->PSendSysMessage(String);
return true;
}
```
yet it still returns a string
![[Image: unknown.png?ex=690bd495&is=690a8315&hm=e...13991f998&]](https://cdn.discordapp.com/attachments/284323424032129024/704826770666553394/unknown.png?ex=690bd495&is=690a8315&hm=e58ed4e778505e5a851aab00c054340786affc9fcb805a26f0dcaae13991f998&)