|
Questions regarding ftp_download
#440949
05/07/14 05:06
05/07/14 05:06
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
Hello again I am using the manuals example to get myself going with this feature, however i am having difficulty with doing so. I've added everything correctly, except for 2 possibilities - the address or path - but both are correct afaik. I've tried ftp_debug(1); but I get the "Error during Download" printf and then the engine crashes. Commented out I still get the same error, but no crash.
STRING* UPDATE_ADRS = "ftp://host.net/gamefolder/updates/playermodel.mdl";
STRING* UPDATE_MODEL = "3dmodels/Player.mdl";
STRING* CLI_NO = "...";//both are correct
STRING* CLI_PA = "...";//^^^
void update_game(){
ftp_download(UPDATE_ADRS,UPDATE_MODEL,CLI_NO,CLI_PA);
while (ftp_status()==0) //as long as the download is running
{ //get informations about the download:
//ftp_debug(1);
fsize = ftp_size();
fsent = ftp_sent();
//set(DEBUG_PAN,SHOW);
//globalvar = 0;
wait(1);
}
if (ftp_status() == 1){printf("Download successful!");}
else{printf("Error during download!");}
}
Im not sure whats up from here... Or does this only work with a published version?? - I created a resource file and got the acknet.dll and placed it in my project folder with no luck either. Any Suggestions?
Last edited by DLively; 05/07/14 05:16.
|
|
|
Re: Questions regarding ftp_download
[Re: DLively]
#440954
05/07/14 09:37
05/07/14 09:37
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
You shouldnt provide the password to the suer o.0 Use another function to download from http without the need of a username and password Maybe use a library or something but never get out your ftw credentials!
|
|
|
|