I have some trouble using variables defined in material.inc.php in the function setupNewGame of gamename.game.php.
I simply define "$this->toto = array(2 => 150, 4 => 150);" in material,
but when I try to access them in the function setupNewGame of gamename.game.php with "$this->toto[2]", I get an error "Undefined property: GameName::$Array " when I start a new game.
I simply define "$this->toto = array(2 => 150, 4 => 150);" in material,
but when I try to access them in the function setupNewGame of gamename.game.php with "$this->toto[2]", I get an error "Undefined property: GameName::$Array " when I start a new game.