echo all in source
#1

Hello,

 

i want to make an echo all in my sources, that when the function is called, the server make the equivalent of "echo all".

 

How can i make this?

 

thanks

#2

MsgrNoticeMsg

MsgrNoticeMsg(CNetMsg::SP& msg, int seq, int server, int subno, int zone, const char* chat)

Example:

 

strMessage= "Hello World!";

MsgrNoticeMsg(rmsg, -1, -1, -1, -1, strMessage);

 

this will send message for all players

#3

It doesn't work, so i tried with this code :

char strMessage[1024] = {0,};
sprintf(strMessage,"Hello World!");
CNetMsg::SP rmsg(new CNetMsg);
MsgrNoticeMsg(rmsg, -1, -1, -1 -1, strMessage);
GAMELOG << init("Info") << "Finish echo!" << delim << strMessage << end;
but still don't work

#4


It doesn't work, so i tried with this code :

char strMessage[1024] = {0,};
sprintf(strMessage,"Hello World!");
CNetMsg::SP rmsg(new CNetMsg);
MsgrNoticeMsg(rmsg, -1, -1, -1 -1, strMessage);
GAMELOG << init("Info") << "Finish echo!" << delim << strMessage << end;
but still don't work

 

MsgrNoticeMsg(rmsg, -1, -1, -1, -1, strMessage);

 

Missing a comma

#5
Where? i don't see it :angry: Huh

#6


It doesn't work, so i tried with this code :

char strMessage[1024] = {0,};
sprintf(strMessage,"Hello World!");
CNetMsg::SP rmsg(new CNetMsg);
MsgrNoticeMsg(rmsg, -1, -1, -1 -1, strMessage); <----------------------------<<
GAMELOG << init("Info") << "Finish echo!" << delim << strMessage << end;
but still don't work

 

In ur code post, here

#7


It doesn't work, so i tried with this code :

char strMessage[1024] = {0,};
sprintf(strMessage,"Hello World!");
CNetMsg::SP rmsg(new CNetMsg);
MsgrNoticeMsg(rmsg, -1, -1, -1 -1, strMessage);
GAMELOG << init("Info") << "Finish echo!" << delim << strMessage << end;
but still don't work

CLCString strMessage(100);
strMessage= "Hello World!";
CNetMsg::SP rmsg(new CNetMsg);
MsgrNoticeMsg(rmsg, -1, -1, -1, -1, strMessage);
SEND_Q(rmsg, ch->m_desc);
GAMELOG << init("Finish echo!") << end;
#8
It's doesn't work, it's strange.. I have it in gamelog but not IG

#9


CLCString strMessage(100);

strMessage= "Hello World!";

CNetMsg::SP rmsg(new CNetMsg);

MsgrNoticeMsg(rmsg, -1, -1, -1, -1, strMessage);

SEND_Q(rmsg, ch->m_desc);

GAMELOG << init("Finish echo!") << end;
 

#10
with this, the variable "ch" isn't declared :/



Forum Jump:


Users browsing this thread: 1 Guest(s)