View Single Post
  #16  
Old 03-04-2011, 06:43 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
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");

__________________
Reply With Quote