Quote:
Originally Posted by Misiur
In "request goes" you have some weird string with a lot of %'s? You only have to urlencode parameters
pawn Код:
SendTranslatedMessage(playerid,message[]) { new buf[1024]; format(buf,sizeof(buf),"translate.yandex.net/tr.json/translate?lang=en-ru&text=%s",urlencode(message)); printf("Request goes: %s",buf); HTTP(playerid, HTTP_GET, buf, "", "MyHttpResponse"); }
|
Done like you said, again request code 6. And this is what I see in log when trying to translate "Welcome, Administrator!"
Request goes: translate.yandex.net/tr.json/translate?lang=en-ru&text=Welcome%2C%20Administrator!