I'm having problems outputting messages. I checked readme.txt from hpb bot wich explains how to do this, but I don't have _DEBUG flag in my sources anywhere.. So where can I put these lines to get message output? (or is it possible to put message output on from console?, that would also help)
Code:
fp=fopen("bot.txt","a");
fprintf(fp,"pfnRegUserMsg: pszName=%s msg=%d\n",pszName,msg);
fclose(fp);
I checked Joebot sources also and saw that there was message strings: #Terrorists_Win and #CTs_Win. I made BotClient_CS_TextMsg function and altered pfnMessageBegin for it, but it seems that these messages wont work with it, or I havent made right preparations to make that function work. So if anyone have any idea what could be wrong please reply. I have fighted almoust a day with this.
Here's what I add under else if (mod_id == CSTRIKE_DLL):
Code:
else if (msg_type == GET_USER_MSG_ID (PLID, "TextMsg", NULL))
{
botMsgFunction = BotClient_CS_TextMsg;
botMsgEndFunction = BotClient_CS_TextMsg;
}