Показать сообщение отдельно

  #12  
Старый 30.10.2007, 17:47
XopoIII
Постоянный
Регистрация: 29.10.2007
Сообщений: 381
С нами: 9754684

Репутация: 65
По умолчанию

вроде более ли менее разобрался теперь такая проблема=)
Parse error: parse error, unexpected T_CLASS, expecting T_FUNCTION in T:\home\localhost\3\classes\Trauma.php on line 178

вот эта строка

class LightTrauma extends Trauma {

за ней идет

function LightTrauma($fighterId) {
$this->Trauma($fighterId);
$this->setVariable('type', TRAUMA_LIGHT);
}

function chooseType($mode, $probability) {
if ($probability < $this->probability[$mode][TRAUMA_MEDIUM]) {
$newTrauma = new HardTrauma($this->getVariable('fighterId'));
} elseif ($probability < $this->probability[$mode][TRAUMA_LIGHT]){
$newTrauma = new MediumTrauma($this->getVariable('fighterId'));
} else {
$newTrauma = false;
}
return $newTrauma;
}

}

что может в быть в той строке не правильно вообще не понимаю=(
 
Ответить с цитированием