a HTTP function
#1

Hi, i tryed a new function HTTP and it doesn't work

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;
}
not any error etc.
It prints in console "Failure ! Reason = 0" what is bad guys ?
Reply
#2

SOLVED >i did readed VERY bad tutorial
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)