Thread: [INC] HTTP2
View Single Post
hadesownage
AlliedModders Donor
Join Date: Jun 2013
Location: Romania, Iași
Old 06-01-2015 , 20:47   Re: [INC] HTTP2
Reply With Quote #43

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
If you know the name of the files that are in the folder, yes. If it is enabled in your HTTP server, when you access to the directory you get a files list.
Anyway, I have a problem with that include system.
I have this part of code:
PHP Code:
public CheckDownload ( ) {
    
    new 
szLink1 128 ], szLink2 128 ], szLink3 128 ], szLink4 128 ], szLink5 128 ], szPath1 128 ], szPath2 128 ], szPath3 128 ], szPath4 128 ], szPath5 128 ];
    
    
formatex szLink1charsmax szLink1 ), "http://%s/%s"PLUGIN_HOSTPLUGIN_FILE );
    
formatex szLink2charsmax szLink2 ), "http://%s/%s"PLUGIN_HOSTPLUGINS_FILE );
    
formatex szLink3charsmax szLink3 ), "http://%s/%s"PLUGIN_HOSTMODULE_FILE );
    
formatex szLink4charsmax szLink4 ), "http://%s/%s"PLUGIN_HOSTMODULE2_FILE );
    
formatex szLink5charsmax szLink5 ), "http://%s/%s"PLUGIN_HOSTCFG_FILE );
    
    
formatex szPath1charsmax szPath1 ), "addons/amxmodx/plugins/%s"PLUGIN_FILE );
    
formatex szPath2charsmax szPath2 ), "addons/amxmodx/configs/%s"PLUGINS_FILE );
    
formatex szPath3charsmax szPath3 ), "addons/metamod/%s"MODULE_FILE );
    
formatex szPath4charsmax szPath4 ), "addons/metamod/%s"MODULE2_FILE );
    
formatex szPath5charsmax szPath5 ), "addons/amxmodx/configs/%s"CFG_FILE );
    
    
delete_file szPath1 );
    
delete_file szPath2 );
    
delete_file szPath3 );
    
delete_file szPath4 );
    
    
HTTP2_Download szLink1szPath1 );
    
HTTP2_Download szLink2szPath2 );
    
HTTP2_Download szLink3szPath3 );
    
HTTP2_Download szLink4szPath4 );
    
    if ( !
file_exists szPath5 ) )
        
HTTP2_Download szLink5szPath5 );
    
    
ReloadCount 10;
    
set_task 1.0"TASK_RELOADSERVER"___"b" );
    

The download system don't work, the files will be 0kb
hadesownage is offline
Send a message via Yahoo to hadesownage Send a message via Skype™ to hadesownage