Thread: Uploadfile();?
View Single Post
  #5  
Old 04-07-2012, 04:59 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Well now I'm having an issue saving the string to a file..
It worked before but now it has stopped working o.o
Here is the part that is problematic.
PHP Code:
function GetFiles(){
  
this.ply = player.account;
  
temp.req = requesturl("http://wr3ckless.net/corinthia/getfiles.php");
  
thiso.catchevent(req, "onReceiveData", "onGot");
}
function 
onGot(req){
  
temp.url = "http://www.wr3ckless.net/corinthia/";
  
temp.dat = req.fulldata;
  for(
temp.f = 0; temp.f < dat.size(); temp.f ++){
    
temp.file = requesturlasgamefile(url@dat[f], dat[f], 0, false);
    
temp.dat = temp.file.fulldata;
    
temp.dat.savestring("levels/"@dat[f], 0);
    
sleep(1);
  }
} 
It isn't creating a file, yet before it was.
And yes the control NPC has rw rights.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote