Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-15-2013, 09:35 PM
JohnnyChimpo JohnnyChimpo is offline
Registered User
JohnnyChimpo's Avatar
Join Date: Jun 2004
Posts: 105
JohnnyChimpo is on a distinguished road
Triggerserver with object

Im trying to send an object through triggerserver but getting no results.
PHP Code:

  
else if (params[0] == "saveall")
  {
    
temp.data1 params[1];
    
//temp.savedata = new TStaticVar();
    //temp.savedata.loadvarsfromarray(temp.data1);
    
for (temp.i=0;i<langNumber;++i){
      
temp.data2 temp.data1[i];
      
temp.file filename[i];
      
temp.data2.savelines(temp.file);
    }
    
player.triggerclient("gui"this.name"savedall");
   }


//#CLIENTSIDE
function SaveAll_Button.onAction(){
  
temp.data trans.fileArray;
  
triggerserver("gui"this.name"saveall"temp.data);

The button for save works fine, but another weird thing is that when it goes to load the files back into multi line text edit, they are the same as they were like it was untouched. But if you go and download from server they are different. That confuses the heck out of me.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.