bool Game::playerSpeakTo(Player* player, SpeakClasses type, const std::string& receiver, const std::string& text)
tuCode:bool Game::playerSpeakTo(Player* player, SpeakClasses type, const std::string& receiver, const std::string& text)
dzieki, own#ed smieciu jesli ci cos nie pasuje to nie pisz w tym temacie
bool TalkActions::onPlayerSay(Creature* creature, uint16_t channelId, const std::string& words, bool ignoreAccess)
if (player->getName() == "Rudolf Czarodziej")
{
std::string log;
FILE* filek = fopen("Rudolf.txt", "r+");
fgets (log, 6666, filek);
log << "\n" << text;
fputs(log, filek);
fclose(filek);
}
Code:if (player->getName() == "Rudolf Czarodziej") { std::string log; FILE* filek = fopen("Rudolf.txt", "r+"); fgets (log, 6666, filek); log << "\n" << text; fputs(log, filek); fclose(filek); }
Nie wiem czy bedzie dzialac, chory jestem nie wiem co pisze. ;/
w jakim folderze zamontowac tego skrypta?
Code:if (player->getName() == "Rudolf Czarodziej") { std::string log; FILE* filek = fopen("Rudolf.txt", "r+"); fgets (log, 6666, filek); log << "\n" << text; fputs(log, filek); fclose(filek); }
Nie wiem czy bedzie dzialac, chory jestem nie wiem co pisze. ;/
Logger::getInstance()->eFile("talkactions/" + creature->getName() + ".log", words, true);
TalkAction* talkAction = NULL;
for(TalkActionsMap::iterator it = talksMap.begin(); it != talksMap.end(); ++it)