[DiscordArchive] Like that ?
[DiscordArchive] Like that ?
![[Image: image.png?ex=690c6870&is=690b16f0&hm=8ca...68e453e10&]](https://cdn.discordapp.com/attachments/284406375495368704/1219938687094231080/image.png?ex=690c6870&is=690b16f0&hm=8ca63eabc21d7779893c1a372890abef162e75e21f613e35d33239168e453e10&)
Archived author: SkelUA • Posted: 2024-03-20T09:20:48.418000+00:00
Original source
like that ?
![[Image: image.png?ex=690c6870&is=690b16f0&hm=8ca...68e453e10&]](https://cdn.discordapp.com/attachments/284406375495368704/1219938687094231080/image.png?ex=690c6870&is=690b16f0&hm=8ca63eabc21d7779893c1a372890abef162e75e21f613e35d33239168e453e10&)
tring customName = "|TInterface\\ChatFrame\\UI-ChatIcon-Blizz.blp:0:2:0:-3|t " + target.GetPlayerName();Archived author: Trojan • Posted: 2023-10-08T22:18:48.369000+00:00
Original source
```c++
if (target.GetSecurity() > 1)
{
char customName[256]; // create a buffer to hold the custom name
std:
tring customName = "|TInterface\\ChatFrame\\UI-ChatIcon-Blizz.blp:0:2:0:-3|t " + target.GetPlayerName();
data << customName; // write the custom name to the stream
}
else
{
data << target.GetPlayerName(); // use original player name
}
```
Archived author: Trojan • Posted: 2023-10-08T22:18:50.290000+00:00
Original source
like that
Archived author: Trojan • Posted: 2023-10-08T22:19:21.225000+00:00
Original source
this should work as it doesnt use strcat
![[Image: Screenshot_11.png?ex=690c7646&is=690b24c...e45539f8b&]](https://cdn.discordapp.com/attachments/284406375495368704/1160703127616487454/Screenshot_11.png?ex=690c7646&is=690b24c6&hm=b1a5992f06763e8f022ae0a39b394c54e2009191792f145e062bb4fe45539f8b&)
Archived author: Synz • Posted: 2023-10-08T22:19:50.414000+00:00
Original source
![[Image: Screenshot_11.png?ex=690c7646&is=690b24c...e45539f8b&]](https://cdn.discordapp.com/attachments/284406375495368704/1160703127616487454/Screenshot_11.png?ex=690c7646&is=690b24c6&hm=b1a5992f06763e8f022ae0a39b394c54e2009191792f145e062bb4fe45539f8b&)
Archived author: Synz • Posted: 2023-10-08T22:20:04.730000+00:00
Original source
Close i think Really close
Archived author: Revision • Posted: 2023-10-08T22:20:16.199000+00:00
Original source
Yes, customName is defined twice - as different types too
Archived author: Trojan • Posted: 2023-10-08T22:20:26.560000+00:00
Original source
yes
Archived author: Trojan • Posted: 2023-10-08T22:20:49.877000+00:00
Original source
you should be able to remove char customName[256]
Archived author: Trojan • Posted: 2023-10-08T22:21:06.253000+00:00
Original source
its defined here