HTTP function crashes my server.
#1

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

}
Reply
#2

Can anybody help me
Reply
#3

It crashes due to the URL.
Reply
#4

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
It crashes due to the URL.
what do you mean? whats wrong with url?
Reply
#5

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.
Reply
#6

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.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)