Raised This Month: $ Target: $400
 0% 

Compile error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SlayeR
Member
Join Date: Jan 2009
Location: Poland
Old 07-28-2009 , 05:04   Re: Compile error.
Reply With Quote #3

Here it is.

Code:
/**

 *

 *   (c)2007, Bentski

 *   Homepage: http://kzlt.bentski.lt/

 *   Server: cs.bentski.lt:27015

 *

 *   HTTP downloader. Allows to download files from the web.

 *

 */



#if defined _httpdl_included

  #endinput

#endif

#define _httpdl_included



#pragma library httpdl



#define MAX_DOWNLOADS 32

#define DOWNLOAD_TIMEOUT_IN_MS 10 // 1sec = 10

#define DOWNLOAD_SPEED_IN_MS 104857 // 1024 = 10kb/s



/* Forwards */



// Called when download is finished

// * id   - download id

// * file - path + filename of downloaded file

forward dlcomplete(id, file[], url[], bytes_downloaded);





/* Natives */



// Downloads a file

// Returns download id or 0 if something failed

// * url    - address of remote file (eg. "http://bentski.lt/something.zip")

// * dlpath - where to place downloaded file (eg. "addons/amxmodx/data/something.zip")

native download(url[], dlpath[]);
SlayeR is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode