Thread: Force Download
View Single Post
  #7  
Old 12-14-2009, 05:06 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
fileupdate is kind of useless nowadays, it was more so back when you did File I/O via Scripts and the files didn't appear in the File Browser until you did /refreshfilelist.

I don't think there's a command to actually force a re-download on the client-side. You can do this though on the server-side to have everyone re-download it.

PHP Code:
function onCreated() {
  
forceReDownload("levels/images/block.png");
}

function 
forceReDownload(file) {
  
temp.img.loadstring(file);
  
temp.img.savestring(file0);

__________________
Quote:
Reply With Quote