17.09.2010, 07:51
Hi, i tryed a new function HTTP and it doesn't work
I have code this way
not any error etc.
It prints in console "Failure ! Reason = 0" what is bad guys ?
I have code this way
Code:
public OnGameModeInit()
{
HTTP(0,HTTP_GET,"i-fair.eu/test.txt","","GetHostnameFromServer");
return 1;
}
forward GetHostnameFromServer(response_code,data[]);
public GetHostnameFromServer(response_code,data[])
{
if(response_code == 200)
{
printf("Content : %s",data);
} else printf("Failure ! Reason = %d",response_code);
return 1;
}
It prints in console "Failure ! Reason = 0" what is bad guys ?

