16.05.2011, 19:14
I'm trying to load data using HTTP but it's not working, it doesn't even print outside of any if statements:
pawn Код:
HTTP(0, HTTP_GET, "urlremoved", "", "serverResponse");
pawn Код:
public serverResponse(index, response_code, data[])
{
printf("%d", response_code);
new buffer[500][10028];
if(response_code == 200)
{
split(data, buffer, '\n');
printf("The URL replied: %s", buffer[0]);
}
else
{
printf("The request failed! The response code was: %d", response_code);
}
}