Author Topic: Testing for a file  (Read 1595 times)

In creating a script that will automatically save and load player information, I noticed that by just moving MrPickle's trigger scripts to OnClientEnter caused problems. Normally a variable would tell if a person has saved money and thus has a file. Due to the fact no-one is saving now, it simply crashes when an unregistered user attempts to get in. How do I test for a file?

Um, I think it's something like

Code: [Select]
if(isFile("add-ons/Something.cs")){
//Do stuff nao
}

 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:
 :cookie: :cookie: :cookie: :cookie:

secks?

IbanX please make a thread called "bounty hunter mod help" or somthing, to stop from makng so many threads. You made soooo many threads.

I tried that once and no one looked at it. Now I make new threads. Deal with it pl0x.

What does %var.Delete(); do? Does it delete the variable or the file?

It deletes the file object (basically the variable).

But the file stays put?