Ok so during the server join event, I find an available player slot and broadcast a message to every client.

The string has a command code, and clients without an assigned ID get this number and assign it their client entity they created on the server.

the server should then be able to scan through all entities until it finds one with a matching ID and then send a message to that client through this entity.

Here's the final snippet, maybe there is something wrong here?

Code:
				// Find new Client entity 
				you = ent_next(null);
				while(you!=null){
					if(you._client)&&(you.player == tempID){me=you;}
					you = ent_next(you);	
				}
				SEND_STRING_TO(me, "Registered");


Currently the string "Registered" does not show up on the client. Any pointers?

Also I have noticed that some of my broadcast strings are not showing up complete on the clients. I send "Registered" but the clients display "Reg" any suggestions?

Thanks guys


The Art of Conversation is dead : Discuss