View Single Post
  #15  
Old 03-04-2011, 06:49 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Quote:
Originally Posted by 0PiX0 View Post
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(afisvar1svar2) {
  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(svar20);
    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.
Reply With Quote