undefined Posted July 1, 2015 Share Posted July 1, 2015 (edited) Im make a download system. So first important script, second ... But it's give error. downloadFile(":object/Skins/dead.col") Script is running. What is the problem? Thx Edited July 1, 2015 by Guest Link to comment
John Smith Posted July 1, 2015 Share Posted July 1, 2015 ":" is used to load a file from another resource; resource which isnt the one you're currently running you could use downloadFile(":[3D]/object/Skins/dead.col") or if you're currently in 3D resource's script then use downloadFile("object/Skins/dead.col") Link to comment
John Smith Posted July 1, 2015 Share Posted July 1, 2015 can you post the file path from your pc where this is located? e.g C:\Program Files (x86)\MTA San Andreas 1.4\server\mods\deathmatch\resources\resource-name\etc (also code where downloadFile is would be useful) Link to comment
SpecT Posted July 1, 2015 Share Posted July 1, 2015 downloadFile("Skins/dead.col") Should work. Link to comment
undefined Posted July 1, 2015 Author Share Posted July 1, 2015 Solved! downloadFile is work only if downloadFile function and file in the same resource. Link to comment
Moderators IIYAMA Posted July 1, 2015 Moderators Share Posted July 1, 2015 That is more than logic, to keep everything save. But you can copy the file to another resource. (or just temporary) 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