pegas7team Posted September 29, 2012 Author Share Posted September 29, 2012 hi all and soory for my bat englishFirst i would like to thank all the team how’s investing time in this ProjectI m in middle of creating of additional function in my game so my question is what is the function responsible for sending information form client to server and how can i get the response in my client ?A simple example will be very helpfuli will be very thankful for answering this question Link to comment Share on other sites More sharing options...
hisherwin Posted September 30, 2012 Share Posted September 30, 2012 My eye's Need glasses to read this letter. Try to use more bigger font size..All you need to do on responding Client to Server and Server to Client is head over their TCP..Add a Send data . Then add a CName(Name it what ever you want) or SName(Again)Then at their HandleData there should it be..Sorry if you don't understand it.. Link to comment Share on other sites More sharing options...
pegas7team Posted November 28, 2012 Author Share Posted November 28, 2012 thanks Sherwin and if i understand you the function```sendData(CName(playerxxx),HandleData("my varible here")) ```send data from client to server and i have to test the varible comming form the function :```HandleData("my varible here") ```then i send it back using the same function```sendData(CName(playerxxx),HandleData("responce here")) ```is that correct !by the way you reply speed is impressive Link to comment Share on other sites More sharing options...
tslusny Posted November 28, 2012 Share Posted November 28, 2012 No…. Link to comment Share on other sites More sharing options...
pegas7team Posted November 28, 2012 Author Share Posted November 28, 2012 so Nyan could you correct it … Link to comment Share on other sites More sharing options...
tslusny Posted November 28, 2012 Share Posted November 28, 2012 Make new sub for sending data in f.e. Client TCP. Try to copy some of what are there already. Then make new variable in enum CMSG, then in that sub use Buffer.Writelong C(Variable), then in server add same variable to enum CMSG, then handle it in sub InitMessages,and then make sub what will handle procedures with that packet. Link to comment Share on other sites More sharing options...
pegas7team Posted November 28, 2012 Author Share Posted November 28, 2012 thanks Nyan i will try to apply your instration ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now