Thread: FileExists?
View Single Post
  #1  
Old 04-07-2005, 07:24 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
FileExists?

Earlier i was scripting out a system for a battle thingy.

anyways, i was wondering if there is a way to check serverside if a fileexists or not?

I was doing something like

NPC Code:

if (fileexists(level.nw)) {
//
}else{
//
}



In the else, i was using copylevel so that it could copy the level to the new folder.

I even tried using foldername/levelname.nw in the fileexists, but it didnt work either, as the top condition was all that was returned.

If there is a way to do this without all the trouble, i really cant figure it out, thanks for help!

Edit:

picked up fileexists from this thread
http://forums.graalonline.com/forums...ad.php?t=50863
__________________
Reply With Quote