Fixed chat printing error.

This commit is contained in:
shavit 2018-05-07 18:25:13 +03:00
parent 8be2d1085c
commit 07434d085d

View File

@ -1034,6 +1034,14 @@ public int Native_StopChatSound(Handle handler, int numParams)
public int Native_PrintToChat(Handle handler, int numParams) public int Native_PrintToChat(Handle handler, int numParams)
{ {
int client = GetNativeCell(1); int client = GetNativeCell(1);
if(!IsClientInGame(client))
{
gB_StopChatSound = false;
return;
}
static int iWritten = 0; // useless? static int iWritten = 0; // useless?
char[] sBuffer = new char[300]; char[] sBuffer = new char[300];