Search found 5 matches

by Silae
31 December 2020, 11:09
Forum: Developers
Topic: Diving into code, need some assistance
Replies: 13
Views: 2123

Re: Diving into code, need some assistance

If you want to loop over of an associative array, you should do : foreach ($my_array as $key => $value){ $sql_values[] = "(' " . $value . " ')"; } You can concatenate like this : str_1 = string1 . $var1 . string2; I guess you want to make a SQL query, you need to add a ' after an...
by Silae
31 December 2020, 00:39
Forum: Developers
Topic: Diving into code, need some assistance
Replies: 13
Views: 2123

Re: Diving into code, need some assistance

On line 87 self::setGameStateInitialValue('end_turn_notification_sent', false); Use numbers and not false / true, you must have encountered an error for setup. /*uncommenting this fails, dont know why if ( !self::isPlayerZombie( self::getActivePlayerId() ) ) { self::throwDice(); $dice_thrown = self:...
by Silae
13 June 2020, 08:50
Forum: Developers
Topic: Number of players
Replies: 4
Views: 751

Re: Number of players

It's working, surely the file wasn't loaded ...
Thanks for responding :)
by Silae
12 June 2020, 20:15
Forum: Developers
Topic: Number of players
Replies: 4
Views: 751

Re: Number of players

Yes, I have reloaded the game informations (when I put to 2 or 3 or 4, I can see the right number of players when I want to create a table) but when I am around the table, it is always 2 players.

I haven't changed anything in other files (it is default content)
by Silae
12 June 2020, 19:10
Forum: Developers
Topic: Number of players
Replies: 4
Views: 751

Number of players

Hi, I am currently working on a projet where the number of players is fixed ( = 3). So in gameinfos.inc.php, I put: 'players' => array( 3 ), 'suggest_player_number' => null, 'not_recommend_player_number' => array( ), ... When I try to create a table, I see that there is only 3 places. However, when ...

Go to advanced search