SA-MP Forums Archive
http php help? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: http php help? (/showthread.php?tid=523130)



http php help? - wipsjack - 30.06.2014

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


Re: http php help? - Ihateyou - 30.06.2014

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