public void SendCommandToServer(string pName, string message) { NetOutgoingMessage msg = netClient.CreateMessage(); msg.WritePadBits(); msg.Write("COM:" + pName + ":" + message); netClient.SendMessage(msg, NetDeliveryMethod.ReliableOrdered); }
public void SendMessage(string text) { NetOutgoingMessage message = client.CreateMessage(text); client.SendMessage(message, NetDeliveryMethod.ReliableOrdered); client.FlushSendQueue(); }