clienttranslate Variables
Posted: 10 February 2013, 18:19
Hi there,
In the states php file, i defined a state like this
An error occurs when i switch to this state : actPlayer is undefined, so is the $you variable.
Did I miss something in my game php file ?
In the states php file, i defined a state like this
Code: Select all
3 => array(
"name" => "playerMoveDisc",
"description" => clienttranslate('${actplayer} must select a destination'),
"descriptionmyturn" => clienttranslate('${you} must select a destination'),
"type" => "activeplayer",
"args" => "argPlayerMoveDisc",
"possibleactions" => array( "moveDisc", "selectDisc"),
"transitions" => array( "moveDisc" => 4, "selectDisc" => 21, "zombiePass" => 4 )
),Did I miss something in my game php file ?