30.06.2014, 18:59
I need some help with the HTTP function
Its didn't work please help me
pawn Код:
stock SendLangMessage(playerid,const message[]){
new LangText_00x2[256];
format(LangText_00x2,sizeof LangText_00x2,"localhost/lang.php?word=%s&to=%s",message,GetPlayerLanguage(playerid));
printf("%s",LangText_00x2);
HTTP(playerid, HTTP_GET, LangText_00x2 , "", "LanguageTextHTTP");
return 1;
}
function LanguageTextHTTP(index, response_code, data[])
{
if(response_code == 200)
{
SendClientMessage(index, -1, data);
}
return 1;
}