http php help?
#1

I need some help with the HTTP function

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;
}
Its didn't work please help me
Reply
#2

i think we need to see the website ........ to find out the problem
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)