Game Development Community

Client ID

by Rudolf Kajan · in Technical Issues · 12/21/2006 (5:24 am) · 1 replies

I am learning TGE 1.5 - I am making simple game based on tutorial.base - I am making player's quest log - when player presses 'q' key quest log shows up but before the gui is visible client sends request to server to send list of unfinished quests.

...
commandToServer(\'send\',"unf_quests");
...

Qustion : how does the server know which client requested data ? how do i make client identification ?

#1
12/30/2006 (5:54 pm)
The client ID is passed to the server with the command.
So in your server function the first argument is always the clientID.

function serverCmdsend(%client, %blah)