SA-MP Forums Archive
problam HTTP_GET - 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: problam HTTP_GET (/showthread.php?tid=527575)



problam HTTP_GET - SwiZzoR - 23.07.2014

i try to do this :

Код HTML:
#include <a_samp>
#include a_http

public OnFilterScriptInit()
{
  	HTTP(0,HTTP_GET,"www.oref.org.il/WarningMessages/alerts.json","","MyHttpResponse");
}

forward MyHttpResponse(index, response_code, data[]);
public MyHttpResponse(index, response_code, data[])
{
	new buffer [ 128 ];
    if(response_code == 200) //Dd the request succeed?i
    {
        printf("%s", data);
    }
    else
    {
        //No!
        format(buffer, sizeof(buffer), "The request failed! The response code was: %d", response_code);
        print(buffer);
    }
    return HTTP(0,HTTP_GET,"www.oref.org.il/WarningMessages/alerts.json","","MyHttpResponse");
}
but is print me : {________
why its not print me: {
"id" : "1406129609827",
"title" : "פיקוד העורף התרעה במרחב ",
"data" : []
}


Re: problam HTTP_GET - SwiZzoR - 24.07.2014

UP help ?


Re: problam HTTP_GET - AMouldyLemon - 24.07.2014

pawn Код:
#include <a_http>



Re: problam HTTP_GET - SwiZzoR - 24.07.2014

Quote:
Originally Posted by AMouldyLemon
Посмотреть сообщение
pawn Код:
#include <a_http>
If you do not understand please do not respond


Re: problam HTTP_GET - SwiZzoR - 30.07.2014

help !?


Re: problam HTTP_GET - SwiZzoR - 02.08.2014

pls help !


Re: problam HTTP_GET - SwiZzoR - 04.08.2014

pls help !
__________________


Re: problam HTTP_GET - Crystallize - 04.08.2014

Use <a_http> not a_http


Re: problam HTTP_GET - SwiZzoR - 14.08.2014

Quote:
Originally Posted by WizzardY
Посмотреть сообщение
Use <a_http> not a_http
same..
dont work


Re: problam HTTP_GET - SwiZzoR - 23.08.2014

up!!!!!