teh jimpie Posted June 11, 2010 Author Share Posted June 11, 2010 heyhow do I send in EO data from client to server and from server to the client?something like this (in ES)Call SendDataTo(Index, "traineropt" & END_CHAR)but it doesnt workthe only thing I can find is this: SendData Buffer.ToArray()but its not sending something specifik like in ES Link to comment Share on other sites More sharing options...
Robin Posted June 11, 2010 Share Posted June 11, 2010 It is sending something specific. You add the packet header then the packet data.Buffer.WriteLong for writing a long, .WriteString to write a string, etc.Just read the existing packets. Link to comment Share on other sites More sharing options...
teh jimpie Posted June 11, 2010 Author Share Posted June 11, 2010 could you transelate this code:Server > Client```Call SendDataTo(Index, "trainopt" & END_CHAR)```to eo code?```buffer.writelong frm ???```Because I'm still not understanding 100%. I can't figure out what's sending the data in the code below:> Public Sub GlobalMsg(ByVal Msg As String, ByVal color As Byte)> Dim Buffer As clsBuffer> Set Buffer = New clsBuffer> > Buffer.WriteLong SGlobalMsg> Buffer.WriteString Msg> Buffer.WriteLong color> SendDataToAll Buffer.ToArray '?> > Set Buffer = Nothing> End Subthen a 2th thing, where client side to it receive the data? Modhandle data? I see nowere case's? :icon_surprised:I see only a long list of initMessages; Public Sub InitMessages()I'm trying to make a player profile what will pop-up if you rightclick the player.``` ' Change target TempPlayer(index).Target = i TempPlayer(index).TargetType = TARGET_TYPE_PLAYER Call PlayerMsg(index, "Your target is now " & GetPlayerName(i) & ".", Yellow) If ButtonID = 2 Then 'buffer. End If``` Link to comment Share on other sites More sharing options...
teh jimpie Posted June 17, 2010 Author Share Posted June 17, 2010 ugh, waiting almost 2 weeks.. can anybody help? Link to comment Share on other sites More sharing options...
Robin Posted June 17, 2010 Share Posted June 17, 2010 2 weeks? You could have easily learnt it in that time. Link to comment Share on other sites More sharing options...
kibbelz Posted June 17, 2010 Share Posted June 17, 2010 Its not that hard just look inside other peices of the code and recognize how it is sent through from the client to the server. Then copy it and edit it to the way you want. Thats how i learned this. 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