13.06.2015, 06:54
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 :
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.
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
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.