20.03.2012, 22:21
why are you using: $file="$GameDir/scriptfiles/accounts/$user.acc";
$ before the user.acc and before the GameDir ?
Try:
and also if you got gamedir too a var so use:
$ before the user.acc and before the GameDir ?
Try:
PHP код:
function GetPlayerInfo($user)
{
require "config.php";
$file="$GameDir/scriptfiles/accounts/". $user.".acc";
if(!file_exists($file)) return false;
$data = parse_ini_file($file);
return $data;
}
PHP код:
function GetPlayerInfo($user)
{
require "config.php";
$file= "". $GameDir."/scriptfiles/accounts/". $user.".acc";
if(!file_exists($file)) return false;
$data = parse_ini_file($file);
return $data;
}