BlueTheFurry Posted February 18, 2015 Posted February 18, 2015 Hello, i want to get the size of the file "test.dff", but the problem is, when i try to get it, it just throws me this error back: "[expected scriptfile at argument 1, got string "test.dff" ] my code: local theFile = "test.dff" fzb = fileGetSize(theFile) local fz = fzb/1024
JR10 Posted February 18, 2015 Posted February 18, 2015 fileGetSize takes in a file userdata variable, not a string. You need to use fileOpen first. local theFile = fileOpen("test.dff") fzb = fileGetSize(theFile) local fz = fzb/1024
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now