01-13-2016, 11:46 AM
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
|
echo all in source
|
|
01-13-2016, 11:46 AM
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
01-13-2016, 12:24 PM
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
01-13-2016, 01:32 PM
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
01-13-2016, 02:20 PM
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
01-13-2016, 02:27 PM
Where? i don't see it :angry:
![]()
01-13-2016, 03:31 PM
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
01-13-2016, 07:07 PM
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;
01-13-2016, 07:52 PM
It's doesn't work, it's strange.. I have it in gamelog but not IG
01-13-2016, 08:41 PM
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;
01-14-2016, 11:35 AM
with this, the variable "ch" isn't declared :/
|
|
« Next Oldest | Next Newest »
|