Posted By: DLively
Questions regarding ftp_download - 05/07/14 05:06
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.
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?
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.
Code:
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?