Elec0 Posted January 20, 2009 Author Share Posted January 20, 2009 Okay, so I'm editing the 2.7 source to include the script editor that 2.5 has, and when I use this code:``` Call SendData("savemain" & SEP_CHAR & frmEditor.RT.Text & SEP_CHAR & END_CHAR) Call SendReloadScripts```The client sends the data, and then crashes, saying that it lost the connection.What the hell?And it crashes because of SendData, because I remmed it out and it worked fine… Link to comment Share on other sites More sharing options...
Tyr Posted January 20, 2009 Share Posted January 20, 2009 simple mate :)its because the server wants to recieve something but has no code for it. add stuff to the modHandleData :)i will give more info if needed.PS: oh also don't use SEP_CHAR & END_CHAR together it should be like this.Call SendData("savemain" & SEP_CHAR & frmEditor.RT.Text & END_CHAR) Link to comment Share on other sites More sharing options...
Elec0 Posted January 20, 2009 Author Share Posted January 20, 2009 I did. It sends the packet, the server receives it, writes the data to the text file then the client crashes. Link to comment Share on other sites More sharing options...
Tyr Posted January 20, 2009 Share Posted January 20, 2009 your code in the server is probably wrong, i'll post you how to tomorrow, i'm logging off now. Link to comment Share on other sites More sharing options...
Elec0 Posted January 20, 2009 Author Share Posted January 20, 2009 Hmm, okay. Link to comment Share on other sites More sharing options...
unnown Posted January 20, 2009 Share Posted January 20, 2009 @Tyr:> simple mate :)> its because the server wants to recieve something but has no code for it. add stuff to the modHandleData :)> > i will give more info if needed.> > PS: oh also don't use SEP_CHAR & END_CHAR together it should be like this.> Call SendData("savemain" & SEP_CHAR & frmEditor.RT.Text & END_CHAR)actually the sep_char & end_char is better, if there is a bug or you did something wrong Link to comment Share on other sites More sharing options...
gizmo1 Posted January 23, 2009 Share Posted January 23, 2009 @Elec0:> Okay, so I'm editing the 2.7 source to include the script editor that 2.5 has, and when I use this code:> > ```> Call SendData("savemain" & SEP_CHAR & frmEditor.RT.Text & SEP_CHAR & END_CHAR)> Call SendReloadScripts> > ```> The client sends the data, and then crashes, saying that it lost the connection.> What the hell?> And it crashes because of SendData, because I remmed it out and it worked fine…you have SEP_CHAR right before END_CHAR all you need is END_CHAR 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