07.07.2013, 10:43
Hey. My question is simple. How do I return data to SA-MP Script from PHP Page.
PAWN Code
PHP Part (country.php)
Now I want to know how do declare what has to be sent back to SA-MP Server?
PAWN Code
pawn Код:
HTTP(playerid,HTTP_POST,"mg-s.us/country.php",string,"GetPlayerCountry");
PHP код:
<?
$ip = $_POST['ip'];
$country = geoip_country_name_by_name($ip);
?>