31.01.2011, 16:56
ok let me teach you ok, If i am good at that
Sorry. I am not good at HTTP function
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

