25.11.2012, 16:43
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!");
}
}