Quote:
Originally Posted by 0PiX0
My guess is that you are sending a string to the server, not the lines.
Perhaps something like this will work for you:
PHP Code:
function onActionServerSide(afi, svar1, svar2) { switch (afi) { case "callTextTypeFile": temp.text_type_file.loadLines(svar1); triggerClient("gui", name, "displayTextTypeFile", temp.text_type_file); break; case "editTextTypeFile": temp.text_type_file.saveLines(svar2, 0); break; } }
//#CLIENTSIDE
function sendLinesToServer() { temp.lines = MyGuiMultiLineTextControl.getlines(); triggerServer("gui", name, "editTextTypeFile", temp.lines, "MyFile.txt"); }
|
Tried this already and got this as an outcome:
JUST,WORK,ALREADY
instead of what I want, which should be
JUST
WORK
ALREADY
it's getting closer, I'm just not sure what it is, exactly X.X
By the way, the outcomes are what is displayed in the text file.
PHP Code:
Tried this already and got this as an outcome:
JUST,WORK,ALREADY
This is the only example where both the text file and the GUI displayed the same thing, but neither of them were line breaks, which is the goal instead of the commas.