Hi all,
I have a very annoying error on my final scoring. Once the game ends the game goes to its final stage.
In this stage the players can still get bonus points or penalty points.
I want to show these bonus/penalty points as notification to the players... but each time i get errors that it does not recognize the variable.
In the notification code, I have both ${player_name} (which works) and ${alive_score} (which does not work). On the latter it says the variable does not exist. Now I also give this variable to javascript and in the console I can see it has there the correct amount of points in. It is just not willing to show it to me.
Any ideas?
The error shown to me:
Server syntax error: Notice: Undefined variable: alive in ...
As notification it shows me the full message, but without the variable in it:
ZZZ receives points
But as mentioned in the console I can see in the "justConsole" the variable is filled with a number.
Thanks
Maurice
I have a very annoying error on my final scoring. Once the game ends the game goes to its final stage.
In this stage the players can still get bonus points or penalty points.
I want to show these bonus/penalty points as notification to the players... but each time i get errors that it does not recognize the variable.
In the notification code, I have both ${player_name} (which works) and ${alive_score} (which does not work). On the latter it says the variable does not exist. Now I also give this variable to javascript and in the console I can see it has there the correct amount of points in. It is just not willing to show it to me.
Any ideas?
Code: Select all
self::notifyAllPlayers("justConsole","${player_name} receives ${alive} points.", array("player_name" => $player_name, "alive" => $alive_score) );
The error shown to me:
Server syntax error: Notice: Undefined variable: alive in ...
As notification it shows me the full message, but without the variable in it:
ZZZ receives points
But as mentioned in the console I can see in the "justConsole" the variable is filled with a number.
Thanks
Maurice