kyle9217 Posted January 22, 2013 Author Share Posted January 22, 2013 im not sure how to do this and wondering how.Example' Sub on server 'Sub Serversub(index)Call PlayerMsg(index, "hello", green)End sub' Client 'Case "/hello"Call Serversub(MyIndex) Link to comment Share on other sites More sharing options...
Stach Posted January 22, 2013 Share Posted January 22, 2013 No, this can not be done. You'd have to send a packet to the server in order to manipulate it. Link to comment Share on other sites More sharing options...
Wortel Angels Posted January 22, 2013 Share Posted January 22, 2013 It is possible but not on your example wayCase "/Hello"Send an packetServerGetting packet and call with that an sub Link to comment Share on other sites More sharing options...
kyle9217 Posted January 23, 2013 Author Share Posted January 23, 2013 ok ill play around with it some more thanks tho Link to comment Share on other sites More sharing options...
zerohero Posted January 23, 2013 Share Posted January 23, 2013 Kyle there are literally hundreds of example in eclipse itself how to do this.If you take note eclipse currenty uses a number of 'packets' to send data to and from the client and server, these packets are linked to call out functions to the process the data the packets are sending. It sounds slightly complicated but its really quite simple.Fire up your client and search around for something like -```HandleDataSub(SInGame) = GetAddress(AddressOf HandleInGame)```Notice the two key words there, the **SInGame** and **HandleInGame**That means that when the client(for this example) receives a packet from the server addressing itself as '**SInGame**' it should carry out the function **HandleInGame.**If you copy, paste and modify all instances of these two functions for both the server and the client (they will be slightly different in search) then you can call functions just like that!- zero. 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