rjcnz333 Posted January 6, 2008 Share Posted January 6, 2008 I have written a simple script: local hFile = fileOpen("pos.txt", false) -- open the file if hFile then -- check if it was successfully opened writePos(thePlayer, comment) else hFile = fileCreate("pos.txt") -- create a new file writePos(thePlayer, comment) end Then I have tried it and received: ERROR: fileOpen; unable to load file ERROR: fileCreate; unable to load file Why it doesn't create a new file? Link to comment
ChrML Posted January 6, 2008 Share Posted January 6, 2008 I believe I answered you in #mta.scripting, but I'll put the answer here so everyone sees it. fileOpen and fileCreate don't work inside zipped up resources in dp1. That's fixed in dp2. For now extract the resource to a folder. Link to comment
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