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


Messages In This Thread
HTTP function crashes my server. - by pasha97 - 25.11.2012, 16:43
Re: HTTP function crashes my server. - by pasha97 - 26.11.2012, 03:48
Re: HTTP function crashes my server. - by [KHK]Khalid - 26.11.2012, 09:20
Re: HTTP function crashes my server. - by pasha97 - 26.11.2012, 10:42
Re: HTTP function crashes my server. - by [KHK]Khalid - 26.11.2012, 11:01
Re: HTTP function crashes my server. - by Edvin - 26.11.2012, 11:40
Re: HTTP function crashes my server. - by [KHK]Khalid - 26.11.2012, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)