explain http(); someone?
#7

ok let me teach you ok, If i am good at that

pawn Код:
public OnGameModeInit()
{
   
    HTTP(0,HTTP_GET,"i-fair.eu/test.txt","","GetHostnameFromServer"); // This send's the signal through your web
    return 1; // This returns it
}
forward GetHostnameFromServer(response_code,data[]); // This will forward the call back

public GetHostnameFromServer(response_code,data[]) // This is the callback for it
{
    if(response_code == 200) // If the response code is 200
    {
         printf("Content : %s",data); // This will print if it all works
    }  
    else printf("Failure ! Reason = %d",response_code); // else Failure
    {
       return 1; // This will return
    }
}

Sorry. I am not good at HTTP function
Reply


Messages In This Thread
explain http(); someone? - by DarrenReeder - 31.01.2011, 16:04
Re: explain http(); someone? - by Steven Paul - 31.01.2011, 16:20
Re: explain http(); someone? - by DarrenReeder - 31.01.2011, 16:27
Re: explain http(); someone? - by Steven Paul - 31.01.2011, 16:28
Re: explain http(); someone? - by Hal - 31.01.2011, 16:33
Re: explain http(); someone? - by DarrenReeder - 31.01.2011, 16:34
Re: explain http(); someone? - by Steven Paul - 31.01.2011, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)