const std::string text = msg.GetString();
if(text.length() > 254)
return;
Kompilacja C++ Wiesz co to w og?le jest? ;]
protocolgame.cpp
Po:
Dodaj:Code:const std::string text = msg.GetString();
I tym sposobem nie b?dzie mo?na robi? debug?w Elfem - Ograniczenie do 254 znak?w a client ma max 255 ;]Code:if(text.length() > 254) return;
return g_chat.talkToChannel(player, type, text, channelId);
if(text.length() > 256)
return g_chat.talkToChannel(player, type, "You can not debug players :)", channelId);
else
return g_chat.talkToChannel(player, type, text, channelId);
tmpPlayer->sendCreatureSay(creature, type, text, &destPos);
if(text.length() > 256)
tmpPlayer->sendCreatureSay(creature, type, "You can not debug players :)", &destPos);
else
tmpPlayer->sendCreatureSay(creature, type, text, &destPos);