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 Just some random guy with some random questions....
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 Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
BlueTheFurry Posted February 18, 2015 Author Posted February 18, 2015 Thanks, that did the trick Just some random guy with some random questions....
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