Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

EO data STIL NO ANSWER :(


teh jimpie
 Share

Recommended Posts

hey

how 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 work

the 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

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 Sub

then 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...