14.01.2011, 18:18
Well for one thing you're actually missing a closing bracket in there, which means the code won't run since there will be an error.
I also don't know what the above user means about a .tk domain but I've tried going directly to this http://sgt-site.tk/hsa/get.php?user=1&score=1 and it worked fine, asides from the fact that I'm not on the remote address needed to execute the code, the page is there. So I don't see why the SA-MP http client would have a problem there.
PHP код:
<?php
if($_SERVER['REMOTE_ADDR'] == '217.18.70.196')
{
if(!isset($_GET['user'])) return false;
if(isset($_GET['score']))
{
$file = fopen($_GET['user'] . '.txt', 'w');
fwrite($file, $_GET['score']);
fclose($file);
}
}
?>