HTTP function crashes my server. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HTTP function crashes my server. (
/showthread.php?tid=395245)
HTTP function crashes my server. -
pasha97 - 25.11.2012
Dudes, i dont know why this function crashes my server. Help me! Here is a code:
pawn Код:
if (strcmp(cmd, "/isreg",true, 10)==0)
{
HTTP(playerid, HTTP_GET, "uff-forum.gtaboard.com/memberlist", "", "ForumReg");
return 1;
}
forward ForumReg(playerid, response_code, data[]);
public ForumReg(playerid, response_code, data[])
{
// In this callback "index" would normally be called "playerid" ( if you didn't get it already :) )
GetPlayerName(playerid,pname,sizeof(pname));
if(strfind(data,pname,true)!=-1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are registered on forum!");
}
if(strfind(data,pname,true)==-1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are not registered on forum!");
}
}
Re: HTTP function crashes my server. -
pasha97 - 26.11.2012
Can anybody help me
Re: HTTP function crashes my server. -
[KHK]Khalid - 26.11.2012
It crashes due to the URL.
Re: HTTP function crashes my server. -
pasha97 - 26.11.2012
Quote:
Originally Posted by HellSphinX
It crashes due to the URL.
|
what do you mean? whats wrong with url?
Re: HTTP function crashes my server. -
[KHK]Khalid - 26.11.2012
I don't know what is wrong with it. I've tried another URL (not related to your forums) and it didn't crash. I should say I've also tried another URL from your site and it crashed.
Re: HTTP function crashes my server. -
Edvin - 26.11.2012
Quote:
Originally Posted by HellSphinX
It crashes due to the URL.
|
Not necessarily, when I used userb1n's ******* streams, on LINUX, it crashes me too, due HTTP function. I think is a samp bug with HTTP function for linux.
Re: HTTP function crashes my server. -
[KHK]Khalid - 26.11.2012
Quote:
Originally Posted by Edvin
Not necessarily, when I used userb1n's ******* streams, on LINUX, it crashes me too, due HTTP function. I think is a samp bug with HTTP function for linux.
|
You may be right as my tests were not on Linux anyways.
Edit:
And if it's really a bug, then I guess you guys gotta report it.