Kenix Posted January 9, 2011 Share Posted January 9, 2011 how to check the file size of the resource ? Link to comment
Scooby Posted January 9, 2011 Share Posted January 9, 2011 right click on it and view the properties Link to comment
Castillo Posted January 9, 2011 Share Posted January 9, 2011 I think he is asking how to check it scripting way? Link to comment
lil Toady Posted January 9, 2011 Share Posted January 9, 2011 No clean way to do this other than open every file in a resource with file funcs and find their length Link to comment
Kenix Posted January 9, 2011 Author Share Posted January 9, 2011 scooby lol I want to make the comparison well, for example if the file weighs 17 kilobytes downloaded and if we assume the file is 32 kilobytes stopresource. as a resource base mode. edit:I just want to put on community their resources but I do not want to change the files in it P.s scripts and files Link to comment
TAPL Posted January 11, 2011 Share Posted January 11, 2011 well, for you information every files has MD5 every size has same MD5 in BaseMode as i see this used check MD5 you can open BaseMode resource and look at BaseMode/includes/server.lua you will see MD5 in the file like this : 98A08366059CC821D99CD58B497A30BA and used ::File functions:: like fileGetSize and fileOpen and fileClose and fileRead and fileSetPos https://wiki.multitheftauto.com/wiki/FileGetSize https://wiki.multitheftauto.com/wiki/Md5 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