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

Client crashes when I use SendData


Elec0
 Share

Recommended Posts

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

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

@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

@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

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...