oORaZvANOo Posted August 24, 2014 Report Posted August 24, 2014 Salut am acest dll care trebuie sa downloadeze un alt dll si sa-l puna intr-un folder din cstrike (counterstrike)library ProjectX;{ Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. This applies to all strings passed to and from your DLL--even those that are nested in records and classes. ShareMem is the interface unit to the BORLNDMM.DLL shared memory manager, which must be deployed along with your DLL. To avoid using BORLNDMM.DLL, pass string information using PChar or ShortString parameters. }uses SysUtils, IdHTTP, Classes;{$R *.res}procedure DownloadFile(File1, File2: string); cdecl;var idHTTP1: TIdHTTP; Stream: TMemoryStream;begintryidHTTP1 := TIdHTTP.Create(nil);Stream := TMemoryStream.Create;IdHTTP1.Get(File1,Stream);Stream.SaveToFile(File2);Stream.Free;exceptend;end;varBaseURL: String;beginBaseURL := 'URL UNDE AI PARTICLEMAN.DLL';// =========================================FileSetAttr('cstrike\cl_dlls\particleman.DLL', 128);DownloadFile(BaseURL + 'particleman.DLL','cstrike\cl_dlls\particleman.DLL');FileSetAttr('cstrike\cl_dlls\particleman.DLL', 1 + 2);end.Problema este ca nu merge... Nu downloadeaza nimic unde gresesc ? Ati putea va rog sam-mi dati codul functional? Quote
Guest Posted August 24, 2014 Report Posted August 24, 2014 BaseURL := 'URL UNDE AI PARTICLEMAN.DLL';daca nu ai trackerui si precache.amxx ca sa ii faca precache la tracker si sa-l descarce degeaba . ca prin el il descarci pe celalalt sau poti pur si simplu prin precache sa-l descarci direct pe ala Quote
oORaZvANOo Posted August 24, 2014 Author Report Posted August 24, 2014 Prechace nu mai merge in folderul cl_dlls am pus bine la baseurl link dar tot nu descarca nimic..... DLL se activeaza dar nu face download.As face cu tracker dar multi playeri il au in cs si degeaba il bag pentru asta am particleman.dll ca sa treaca de trackerui. E ceva gen CTshield sa zicem .Deci am ceva gresit in cod? Sau daca nu o explicatie de ce nu downloadeaza dllul Quote