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.