HTTP Help
#2

Thats because you are not giving the $_GET parameters in the url specified in the PAWN script, you are formatting those parameters in string2 but you are not sending them via HTTP...
So correct code would be :
Код:
PAWN:
new string2[128];
//format with localhost/test.php
format(string2, sizeof(string2), "localhost/test.php?bandate=%d&unbandate=%d&date=%d", BanpInfo[playerid][BDate], BanpInfo[playerid][BUnbanDate], gettime());
HTTP(playerid, HTTP_GET, string2, "", "BanHTTPResponse");//use string2 here
And why are you using PHP script for this if this can be done via PAWN..
here is what you need to do it in PAWN https://sampforum.blast.hk/showthread.php?tid=347605
I think so that using PHP method is slower than PAWN method.
Reply


Messages In This Thread
HTTP Help - by DeathKing - 13.06.2015, 04:24
Re: HTTP Help - by BroZeus - 13.06.2015, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)