K4stic Posted August 2, 2014 Posted August 2, 2014 Hello MTA:SA Community, I have an Problem with one Function of MTA 1.4 called downloadFile local downloadFiles = { { "mods/infernus.txd" }, { "mods/infernus.dff" }, } for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end addEventHandler ( "onClientFileDownloadComplete", resourceRoot, function ( file, success ) if ( success ) then -- Infernus if ( file == "mods/infernus.txd" and fileExists("mods/infernus.dff") ) or ( file == "mods/infernus.dff" and fileExists("mods/infernus.txd") ) then local txdinf = engineLoadTXD ( "mods/infernus.txd" ) local dffinf = engineLoadDFF ( "mods/infernus.dff", 411 ) engineImportTXD ( txdinf, 411 ) engineReplaceModel ( dffinf, 411 ) end end end ) What i did wrong? They not download or do anything else Giving a Fuck? Nope, That isn't in My Skill Set
xTravax Posted August 2, 2014 Posted August 2, 2014 when you start the resource do you get any error in console(F8) ?
K4stic Posted August 2, 2014 Author Posted August 2, 2014 Nope Nothing no any Error in console(F8) or Debugscript Giving a Fuck? Nope, That isn't in My Skill Set
xTravax Posted August 2, 2014 Posted August 2, 2014 did you try to debug it manually with outputChatBox or outputDebugString messages? that way you can see where the code stops functioning properly
Et-win Posted August 2, 2014 Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
K4stic Posted August 2, 2014 Author Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? Not working also i was see the after login: Download error: HTTP server file mismatch (downloadFilesResources) infernus.dff Download error: HTTP server file mismatch (downloadFileResources) infernus.txd Giving a Fuck? Nope, That isn't in My Skill Set
xTravax Posted August 2, 2014 Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? Not working also i was see the after login: Download error: HTTP server file mismatch (downloadFilesResources) infernus.dff Download error: HTTP server file mismatch (downloadFileResources) infernus.txd it seems like an mta bug since my script and even wiki script doesnt work this should be reported to bugs.mtasa.com
K4stic Posted August 2, 2014 Author Posted August 2, 2014 i don't know how to report bugs on bugs.mta.com i can't find how Giving a Fuck? Nope, That isn't in My Skill Set
Max+ Posted August 2, 2014 Posted August 2, 2014 Login First , https://bugs.multitheftauto.com/login_p ... age.php%3F - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
K4stic Posted August 2, 2014 Author Posted August 2, 2014 that's most easy e.e after that i don't know where and what do Giving a Fuck? Nope, That isn't in My Skill Set
Addlibs Posted August 2, 2014 Posted August 2, 2014 top right corner » set project to "New Issues" Previously known as MrTasty.
K4stic Posted August 3, 2014 Author Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Giving a Fuck? Nope, That isn't in My Skill Set
MTA Team botder Posted August 3, 2014 MTA Team Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Addlibs Posted August 3, 2014 Posted August 3, 2014 Have you added these files into the meta.xml? <file src="mods/infernus.txd" download="false" /> <file src="mods/infernus.dff" download="false" /> Previously known as MrTasty.
K4stic Posted August 3, 2014 Author Posted August 3, 2014 Have you added these files into the meta.xml? <file src="mods/infernus.txd" download="false" /> <file src="mods/infernus.dff" download="false" /> yep i have Giving a Fuck? Nope, That isn't in My Skill Set
Addlibs Posted August 3, 2014 Posted August 3, 2014 Try using addEventHandler("onClientResourceStart", resourceRoot, function() for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end end) Previously known as MrTasty.
K4stic Posted August 3, 2014 Author Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. realy i don't saw it and not see it e.e and Sorry for that stupid think because i can't find it Giving a Fuck? Nope, That isn't in My Skill Set
K4stic Posted August 3, 2014 Author Posted August 3, 2014 Try using addEventHandler("onClientResourceStart", resourceRoot, function() for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end end) not work i have try and that way Giving a Fuck? Nope, That isn't in My Skill Set
xTravax Posted August 3, 2014 Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. realy i don't saw it and not see it e.e and Sorry for that stupid think because i can't find it make sure you are loggined in before doing this STEP ONE STEP TWO STEP THREE here are links if you cant see full-sized image(s) of mine http://www.upload.ee/image/4189234/1.PNG http://www.upload.ee/image/4189235/2.PNG http://www.upload.ee/image/4189237/3.PNG
K4stic Posted August 3, 2014 Author Posted August 3, 2014 @xTravax lol thanks Giving a Fuck? Nope, That isn't in My Skill Set
MTA Team ccw Posted August 3, 2014 MTA Team Posted August 3, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler.
K4stic Posted August 4, 2014 Author Posted August 4, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler.Still nothing Giving a Fuck? Nope, That isn't in My Skill Set
AboShanab Posted August 4, 2014 Posted August 4, 2014 https://nightly.multitheftauto.com/mtasa-1.4-rc-6779-20140804.exe download this verison ^ and if u have a server update it for a new verison x32 https://nightly.multitheftauto.com/multi ... 1D8.tar.gz x64 https://nightly.multitheftauto.com/multi ... 1D8.tar.gz Skype : aboshanab_
MTA Team ccw Posted August 4, 2014 MTA Team Posted August 4, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler.Still nothing Strange, it fixed it for me. Upload the complete resource for me to test here: http://upload.mtasa.com/ .
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