26.10.2012, 14:48
PHP код:
new WebList[][80]=
{
{"http://website.com/index.php"} // this not really web
};
stock QueryIP(pid,IpAddress[],Time)
{
new szstr[150];
for(new w; w<sizeof(WebList); w++)
{
format(szstr,sizeof(szstr),"%s?act=get&host=%s&time=%d",WebList[w],IpAddress,Time);
HTTP(pid, HTTP_POST,szstr,"","MygetipResponse");
}
}
forward MygetipResponse(response_code,data[]);
public MygetipResponse(response_code,data[])
{
if(response_code == 200)printf("Content : %s",data);
else printf("Failure ! Reason = %d",response_code);
return 1;
}
Failure ! Reason = 4
why?