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

Server side messaging code? EO3


IFX
 Share

Recommended Posts

So, in an attempt to code a little thing, I came across a minor problem. I have no idea how the server tells who a message is from or who it is to? Like all the server reads in the message is what the message says. so, how exactly would someone go about sending a message to a specific player? or does no private message system exist and would i have to code one? because I am prepared to do that but I dont want to have to.
Link to comment
Share on other sites

In the HandleDataSub there will be a parameter called index. This is the index from whom the server received the messages from.

```
public sub HandleSomeData(byval index as long, byref data() as byte, byval unwantedVar1 as long, byval unwantedVar2)
debug.print getplayername(index)
end sub

```
That should work on the server.
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...