log_rd2($sess, "SHUTDOWN FROM WHAT ???");
}
else if ($user->stat == 'room') {
- if ($argz[0] == 'logout') {
+ if ($argz[0] == 'help') {
+ $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
+ $user->comm[$user->step % COMM_N] .= show_notify("bottom", $G_room_help, 0, "torna ai tavoli");
+
+ log_wr($sess, $user->comm[$user->step % COMM_N]);
+ $user->step++;
+
+ }
+ else if ($argz[0] == 'logout') {
$user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
$user->comm[$user->step % COMM_N] .= sprintf('postact_logout();');
$user->the_end = TRUE;
// set new status
$user->subst = "sitdown";
$user->table = $table_idx;
- $user->table_pos = $table->player_n;
- $table->player[$table->player_n] = $idx;
- $table->player_n++;
+ $user->table_pos = $table->user_add($idx);
if ($table->player_n == PLAYERS_N) {
// Start game for this table.
log_wr($sess, "PER DI TABLEINFO");
$user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
$user->comm[$user->step % COMM_N] .= show_table_info(&$bri, &$table, $user->table_pos);
-
log_wr($sess, $user->comm[$user->step % COMM_N]);
-
-
$user->step++;
}
else if ($argz[0] == 'chatt') {