Jump to content

fileCreate Client-sided Problems


novo

Recommended Posts

Posted

Hello,

I want to create a file in client-side on a defined resource (:resource/file.txt) but it's not working, here you can see my code:

fileWrite says bad file pointer, the file isn't being created.

  
local file = fileCreate(":resource/file.txt") 
if file then 
fileWrite(file, "H") 
fileClose(file) 
end 
  

Thanks in advance.

Posted

Are you sure you got a file called :resource in your resource ..?

And make sure your resource is saved as a folder and not .zip ..

Posted

Yes, there's a folder/resource called "resource" in my resources folder.

It's a folder.

It's not working for me Solid, maybe it's because I'm having the resource in [] sub-folders?

Posted

You are checking on your server resources folder? because if you are doing that, then you are checking the wrong path, it's on the downloaded client folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...