Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

tclientsocket and userlist problems! can sumone help?

DevelopmentDevelopment Member Posts: 222
can sumone please help me out I got a problem with my userlist below is the login funcation for my simple lanchat it funcation is to send client id information to the client software the way I want it to work is so that when a person connects to the chat i sends his data to himself then broadcasts his current user id to any other clients connected.

the problem is it only adds the users on the newer client here a image to show you [img=http://www.zolahosting.com/delphi.jpg] what the problem is .

if anyone can help me i will be grateful thanks alot

[code]
//========================================================================
//oo Login Procedure ooooooooooooooooooooooooooooooooooooooooooooooooooooo
//========================================================================

if com = 'Login' then
begin
username := dat[0]; // your current user id
if MainForm.ListBox1.Items.IndexOf(username) >= 0 then
SendData(rSocket, '
Sign In or Register to comment.