Jump to content

[Help] downloadFile Function


K4stic

Recommended Posts

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

Link to comment
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

Link to comment
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

Link to comment
  • MTA Team
can't find it and i don't know if you believe me but they not showing for me o.O

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.

Link to comment
can't find it and i don't know if you believe me but they not showing for me o.O

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 :S

Link to comment
can't find it and i don't know if you believe me but they not showing for me o.O

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 :S

make sure you are loggined in before doing this

STEP ONE

1.PNG

STEP TWO

2.PNG

STEP THREE

3.PNG

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

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...