Jump to content
MakeWebGames

Tom V

Members
  • Posts

    25
  • Joined

  • Last visited

  • Days Won

    1

Tom V last won the day on December 18 2022

Tom V had the most liked content!

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tom V's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Dedicated Rare
  • Week One Done

Recent Badges

9

Reputation

  1. Just an idea for you to consider. Maybe the Statistics table on your home page could include timers and links. Here's a pic just to illustrate my thought, but I know you can make it much more aesthetically pleasing...
  2. The demo at https://glscript.net/demo/ is currently throwing a lot of errors.
  3. I have a form which lists the cars by location. I want to select one car in each location and insert multiple records (location field, car id field) for each selected location. Can someone provide some help creating the garage.script.js file. The element names are like so: <input type="radio" name="location1" value="124"> <input type="radio" name="location1" value="62"> <input type="radio" name="location2" value="45"> <input type="radio" name="location2" value="33">
  4. You can still do what URBANZ is suggesting, just use US_exp >= US_exp required.
  5. If the purpose is just to reward players for travelling, then why don't you just alter the function method_fly in travel.inc.php and change the alert message? Wouldn't that be a lot less complicated?
  6. I tried to follow your example, but i can't seem to get nested each's to work. For example, let's look at garage module. If I want a table to look like this: Location = England Car 1 Car 2 Location = France Car 3 I tried this but it doesn't give me the expected result. $cars[] = array( "locname" => $loc->L_name, "options" => array( "name" => $car->CA_name, "location" => $loc->L_name, "damage" => $car->GA_damage.'%', "id" => $car->GA_id, "value" => number_format($value) ), array( "locname" => $loc->L_name, "options" => array( "name" => $car->CA_name, "location" => $loc->L_name, "damage" => $car->GA_damage.'%', "id" => $car->GA_id, "value" => number_format($value) ) ) ); } $this->html .= $this->page->buildElement('garage', array("cars" => $cars)); <tbody> {#unless cars} <tr> <td colspan="5"> <div class="text-center"> <em> You have no cars</em> </div> </td> </tr> {/unless} {#each cars} <h1>{locname}</h1> {#each options} <tr> <td>{name}</td> <td>{damage}</td> <td>${value}</td> <td>{location}</td> <td class="text-center"> <a href="?page=garage&action=sell&id={id}">Sell</a> <a href="?page=garage&action=crush&id={id}">Crush</a> <a href="?page=garage&action=repair&id={id}">Repair</a> </td> </tr> {/each} {/each} </tbody>
  7. Thanks for the clarification.
  8. I can't find the line in blackjack.inc where this rule is applied. In this example, the player has fewer cards, yet the outcome is a draw.
  9. Has anyone created a form like in this example? Table1 and Table2 have a one to many relationship, submitted data stored in Table3. It seems you should just be able to use {#each id} {#each option} {/each} {/each}, but that doesn't work. Anyone have any friendly advice for me?
  10. Has anyone else noticed this bug?
  11. Are you running the latest version 2.2.3 ? You can check by looking at your class/user.php file. Around line 190 it should look like this: public function sendActivationCode($email, $id, $username) { $settings = new settings(); $from = $settings->loadSetting('from_email'); $headers = array(); if ($from) { $headers['From'] = $from; } $gameName = $settings->loadSetting("game_name"); $activationCode = $this->activationCode($id, $username); $subject = $gameName . " - Registration"; $body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted."; mail($email, $subject, $body, $headers); }
  12. Here you go:
  13. Tom V

    Register

    Are you running version 1? Try running version 2. See this thread
  14. Tom V

    Why?

    ParentID should be parentID ?
  15. They way I understand it, a players full health equals zero and goes up with damage. If the players health value exceeds the rank health value, then they should be dead. When you check in to hospital, health value is set to zero (full health) and player is released when hospital timer runs out. It sounds like you want other players to be able to bust someone out of the hospital early by paying a fee or by other means (just guessing because you didn't provide a lot of detail). If that's the case, you should be trying to reduce or reset the player's hospital timer, to simulate that you are speeding up the healing / reviving them.
×
×
  • Create New...