SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 08/07/2019, 02:35 AM   #1
tysanio
Big Clucker
 
tysanio's Avatar
 
Join Date: May 2012
Location: At my House Duh..
Posts: 123
Reputation: 17
Question Problem on requestdownload

Go the error ADDURLRequest No Free Slots!

What does it mean?

__________________

Did i ever tell you the définitions of insanity?
tysanio is offline   Reply With Quote
Old 08/07/2019, 04:38 PM   #2
Mrhind
Little Clucker
 
Mrhind's Avatar
 
Join Date: Mar 2019
Location: Somewhere in the world.
Posts: 47
Reputation: 39
Default Re: Problem on requestdownload

Are u using any function en requestdownload? If so, what function is it?
__________________

Actually retired from the Pawn programming.
If you want to communicate with me, use the links below.


Model Developer - Version 0.3 DL.
Use the links below to access my Portfolio.

_____
Mrhind is offline   Reply With Quote
Old 08/07/2019, 06:37 PM   #3
tysanio
Big Clucker
 
tysanio's Avatar
 
Join Date: May 2012
Location: At my House Duh..
Posts: 123
Reputation: 17
Default Re: Problem on requestdownload

Quote:
new SERVER_DOWNLOAD[] = "http://51.38.230.12/download";
public OnPlayerRequestDownload(playerid, type, crc)
{
new filename[64], filefound, final_url[256];
if(!IsPlayerConnected(playerid))
return 0;
if(type == DOWNLOAD_REQUEST_TEXTURE_FILE)
filefound = FindTextureFileNameFromCRC(crc, filename, sizeof(filename));
else if(type == DOWNLOAD_REQUEST_MODEL_FILE)
filefound = FindModelFileNameFromCRC(crc, filename, sizeof(filename));
if(filefound)
{
format(final_url, sizeof(final_url), "%s/%s", SERVER_DOWNLOAD, filename);
RedirectDownload(playerid, final_url);
}
return 1;
}
Only this
__________________

Did i ever tell you the définitions of insanity?
tysanio is offline   Reply With Quote
Old 08/07/2019, 08:09 PM   #4
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 1,016
Reputation: 2802
Default Re: Problem on requestdownload

Meanwhile here is the original script.

pawn Code:
new baseurl[] = "https://files.sa-mp.com/server";

//-------------------------------------------------

public OnPlayerRequestDownload(playerid, type, crc)
{
    new fullurl[256+1];
    new dlfilename[64+1];
    new foundfilename=0;
   
    if(!IsPlayerConnected(playerid)) return 0;
   
    if(type == DOWNLOAD_REQUEST_TEXTURE_FILE) {
        foundfilename = FindTextureFileNameFromCRC(crc,dlfilename,64);
    }
    else if(type == DOWNLOAD_REQUEST_MODEL_FILE) {
        foundfilename = FindModelFileNameFromCRC(crc,dlfilename,64);
    }

    if(foundfilename) {
        format(fullurl,256,"%s/%s",baseurl,dlfilename);
        RedirectDownload(playerid,fullurl);
    }
   
    return 0;
}
__________________
Elvis has left the building
Kalcor is offline   Reply With Quote
Old 10/07/2019, 06:00 PM   #5
tysanio
Big Clucker
 
tysanio's Avatar
 
Join Date: May 2012
Location: At my House Duh..
Posts: 123
Reputation: 17
Default Re: Problem on requestdownload

With that code same probleme

The red error I know what is it

It the "No free Slots " the error i'm getting that i dont know how to get rid of
__________________

Did i ever tell you the définitions of insanity?
tysanio is offline   Reply With Quote
Old 10/07/2019, 10:41 PM   #6
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 1,016
Reputation: 2802
Default Re: Problem on requestdownload

Quote:
Originally Posted by tysanio View Post
With that code same probleme
you didn't use the script I provided

You can only use http downloads OR the internal downloads, not both at the same time. so return 0 in OnPlayerRequestDownload, not 1.
__________________
Elvis has left the building

Last edited by Kalcor; 11/07/2019 at 12:59 AM.
Kalcor is offline   Reply With Quote
Old 11/07/2019, 04:32 AM   #7
tysanio
Big Clucker
 
tysanio's Avatar
 
Join Date: May 2012
Location: At my House Duh..
Posts: 123
Reputation: 17
Default Re: Problem on requestdownload

I took literally the same code you gave us here
__________________

Did i ever tell you the définitions of insanity?
tysanio is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Hash Problem & MYSQL Saving Problem Faqahat Scripting Help 3 18/04/2016 11:54 AM
[SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.) Mechscape Help Archive 9 24/12/2009 08:47 PM


All times are GMT. The time now is 09:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.