PDA

View Full Version : HTTP function crashes my server.


pasha97
25/11/2012, 04:43 PM
Dudes, i dont know why this function crashes my server. Help me! Here is a code:


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!");
}

}

pasha97
26/11/2012, 03:48 AM
Can anybody help me??? :(:(:(:(:(

[KHK]Khalid
26/11/2012, 09:20 AM
It crashes due to the URL.

pasha97
26/11/2012, 10:42 AM
It crashes due to the URL.

what do you mean? whats wrong with url?

[KHK]Khalid
26/11/2012, 11:01 AM
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.

Edvin
26/11/2012, 11:40 AM
It crashes due to the URL.

Not necessarily, when I used userb1n's youtube streams, on LINUX, it crashes me too, due HTTP function. I think is a samp bug with HTTP function for linux.

[KHK]Khalid
26/11/2012, 11:42 AM
Not necessarily, when I used userb1n's youtube 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.