IFX Posted February 26, 2015 Author Share Posted February 26, 2015 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 More sharing options...
abhi2011 Posted February 26, 2015 Share Posted February 26, 2015 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 More sharing options...
IFX Posted February 26, 2015 Author Share Posted February 26, 2015 Thanks, I ended up trying to do things a different way that ended up being even more difficult. Could I possibly message you when I have an error? (saying as you appear to be the only person responding) Link to comment Share on other sites More sharing options...
abhi2011 Posted February 26, 2015 Share Posted February 26, 2015 It's better to add me on skype… Link to comment Share on other sites More sharing options...
abhi2011 Posted February 26, 2015 Share Posted February 26, 2015 It's better to add me on skype… Check out my profile for the username. Link to comment Share on other sites More sharing options...
IFX Posted February 26, 2015 Author Share Posted February 26, 2015 I sent it, my user name on there is InFernouX 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