Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] That's weird, does it always return entry 51?

[DiscordArchive] That's weird, does it always return entry 51?

[DiscordArchive] That's weird, does it always return entry 51?

Pages (7): Previous 1 3 4 5 6 7 Next  
rektbyfaith
Administrator
0
04-28-2020, 10:46 PM
#41
Archived author: Kitzunu • Posted: 2020-04-28T22:46:36.114000+00:00
Original source

no crashes without it
rektbyfaith
04-28-2020, 10:46 PM #41

Archived author: Kitzunu • Posted: 2020-04-28T22:46:36.114000+00:00
Original source

no crashes without it

rektbyfaith
Administrator
0
04-28-2020, 10:46 PM
#42
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;
}
}
```
rektbyfaith
04-28-2020, 10:46 PM #42

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;
}
}
```

rektbyfaith
Administrator
0
04-28-2020, 10:47 PM
#43
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:02.879000+00:00
Original source

Include iostream at the top
rektbyfaith
04-28-2020, 10:47 PM #43

Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:02.879000+00:00
Original source

Include iostream at the top

rektbyfaith
Administrator
0
04-28-2020, 10:47 PM
#44
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:09.063000+00:00
Original source

and paste the std::cout stuff in there
rektbyfaith
04-28-2020, 10:47 PM #44

Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:09.063000+00:00
Original source

and paste the std::cout stuff in there

rektbyfaith
Administrator
0
04-28-2020, 10:47 PM
#45
Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:16.815000+00:00
Original source

it'll output directly to the console
rektbyfaith
04-28-2020, 10:47 PM #45

Archived author: H0lysp4nk • Posted: 2020-04-28T22:47:16.815000+00:00
Original source

it'll output directly to the console

rektbyfaith
Administrator
0
04-28-2020, 10:49 PM
#46
Archived author: Kitzunu • Posted: 2020-04-28T22:49:09.109000+00:00
Original source

gonna try handler->PSendSysMessage(String);
rektbyfaith
04-28-2020, 10:49 PM #46

Archived author: Kitzunu • Posted: 2020-04-28T22:49:09.109000+00:00
Original source

gonna try handler->PSendSysMessage(String);

rektbyfaith
Administrator
0
04-28-2020, 10:49 PM
#47
Archived author: H0lysp4nk • Posted: 2020-04-28T22:49:16.271000+00:00
Original source

okay
rektbyfaith
04-28-2020, 10:49 PM #47

Archived author: H0lysp4nk • Posted: 2020-04-28T22:49:16.271000+00:00
Original source

okay

rektbyfaith
Administrator
0
04-28-2020, 10:49 PM
#48
Archived author: Kitzunu • Posted: 2020-04-28T22:49:23.812000+00:00
Original source

well
rektbyfaith
04-28-2020, 10:49 PM #48

Archived author: Kitzunu • Posted: 2020-04-28T22:49:23.812000+00:00
Original source

well

rektbyfaith
Administrator
0
04-28-2020, 10:49 PM
#49
Archived author: Kitzunu • Posted: 2020-04-28T22:49:26.639000+00:00
Original source

this is interesting
rektbyfaith
04-28-2020, 10:49 PM #49

Archived author: Kitzunu • Posted: 2020-04-28T22:49:26.639000+00:00
Original source

this is interesting

rektbyfaith
Administrator
0
04-28-2020, 10:49 PM
#50
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&]
rektbyfaith
04-28-2020, 10:49 PM #50

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&]

Pages (7): Previous 1 3 4 5 6 7 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)