Closed matijafistric closed 7 years ago
Not sure how to replicate the bug with 2.0.3 since it sprung up once then when I started debugging, disappeared. Any info on this bug would be helpful.
Since im on version 1.1.0 and plugins are made for higher than that, i cant use couple of things, in example: -myjailbreak things that require answering in chat(math and so on) -hl_gangs - cant create a gang cause it doesnt recognize what i type in chat
Those are most critical ones thats why i named them, if you can help in any way or have any idea how to fix it i would greatly appreciate it.
Since im on version 1.1.0 and plugins are made for higher than that, i cant use couple of things, in example: -myjailbreak things that require answering in chat(math and so on)
if you still wana use 1.1.x for whatever reason. you can edit myjailbreak & compile it to fit with old chat-processor versions.
My intention is to fix problems with chat processor, not trying to adapt to problems and the only reason im still on 1.1.0 is that if i update CP it brings all kinds of problems with it.
Thanks for suggestion though
if remove bNewChat var , author will see double chat, but othersis normal.
L 02/20/2017 - 09:57:23: [chat-processor.smx] Before total 1 L 02/20/2017 - 09:57:23: [chat-processor.smx] PushArrayCell 0.Misaka senpai
playersNum always is 1
this work fine.. temp fix. `
int target_list[MAXPLAYERS+1], target_count;
bool m_bChatAll = GetChatType(m_szFlag);
if(IsPlayerAlive(m_iSender))
{
if(m_bChatAll)
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && i != m_iSender)
target_list[target_count++] = i;
}
else
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && i != m_iSender && GetClientTeam(i) == GetClientTeam(m_iSender))
target_list[target_count++] = i;
}
}
else
{
switch(GetConVarInt(FindConVar("sv_deadtalk")))
{
case 0:
{
if(!m_bChatAll)
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && !IsPlayerAlive(i) && i != m_iSender && GetClientTeam(i) == GetClientTeam(m_iSender))
target_list[target_count++] = i;
}
else
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && !IsPlayerAlive(i) && i != m_iSender)
target_list[target_count++] = i;
}
}
case 1:
{
if(!m_bChatAll)
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && !IsPlayerAlive(i) && i != m_iSender && GetClientTeam(i) == GetClientTeam(m_iSender))
target_list[target_count++] = i;
}
else
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && !IsPlayerAlive(i) && i != m_iSender)
target_list[target_count++] = i;
}
}
case 2:
{
if(!m_bChatAll)
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && i != m_iSender && GetClientTeam(i) == GetClientTeam(m_iSender))
target_list[target_count++] = i;
}
else
{
for(int i = 1; i<= MaxClients; ++i)
if(IsClientInGame(i) && i != m_iSender)
target_list[target_count++] = i;
}
}
}
}
Handle bf = StartMessageEx(MsgId, target_list, target_count, USERMSG_RELIABLE|USERMSG_BLOCKHOOKS);
PbSetInt(bf, "ent_idx", m_iSender);
PbSetBool(bf, "chat", m_bChat);
PbSetString(bf, "msg_name", m_szBuffer);
PbAddString(bf, "params", "");
PbAddString(bf, "params", "");
PbAddString(bf, "params", "");
PbAddString(bf, "params", "");
EndMessage();
`
and
` stock bool GetChatType(const char[] flag) { if(StrContains(flag, "_All") != -1) return true;
return false;
} `
Pushed a fix for this bug, probably needs more testing.
yeap. I pushed a pull request.
After i updated to 2.0.3 nobody can see messages in chat, on version 2.0.2 everybody but author could see them but now nobody can. I'm on version 1.1.0 right now cause its seems to be working except there is thousands of lines of OnSayText2 error everyday and it doesn't work like specified in .cfg file but at least people can talk in chat. Any response will be appreciated.