View Single Post
  #3  
Old 03-09-2011, 06:22 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by MattKan View Post
So let's say someone overwrote pics1.png.

Could I make it

PHP Code:
//#CLIENTSIDE
function onPlayerLogin()
{
 
fileupdate("pics1.png");

To fix the file?

To make it fix the file everyone
Depends on whether the function compares the modification time of the file on your client with the file on the server in order to re-download or if it forces it, but if it does force the download it wouldn't be a good idea to have pics1.png being downloaded every single login.
You'd probably want to be comparing against a pre determined modification time of the original pics1.png beforehand.
Reply With Quote