Kod:
if ListBox.itemindex <> -1 then begin
if ServerSocket1.Active then
try
ConnectionID := ListBox.Itemindex;
ServerSocket1.Socket.Connections[ConnectionID].SendText(FormatFloat('00#',COMMAND) + Args);
except
end else LogMemo.Lines.add('You''re not connected...');
end else showmessage('You must first select a client to send the command to');
if ListBox.itemindex <> -1 then begin
if ServerSocket1.Active then
try
ConnectionID := ListBox.Itemindex;
ServerSocket1.Socket.Connections[ConnectionID].SendText(FormatFloat('00#',COMMAND) + Args);
except
end else LogMemo.Lines.add('You''re not connected...');
end else showmessage('You must first select a client to send the command to');