Jump to content
MakeWebGames

Glock1533

Members
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

Glock1533 last won the day on February 6 2021

Glock1533 had the most liked content!

Recent Profile Visitors

1,182 profile views

Glock1533's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Dedicated Rare
  • Week One Done
  • One Month Later

Recent Badges

12

Reputation

  1. Glock1533

    Stumped.

    Suggested Solution: Create an array with numbers from 1 to 64. Shuffle and select the first 10 numbers. Remove these numbers using array_diff(). Display the remaining numbers. <?php // Grid with numbers from 1 to 64 $grid = range(1, 64); // Shuffle the numbers shuffle($grid); // Select the first 10 numbers $numbersToRemove = array_slice($grid, 0, 10); echo "Removed numbers: " . implode(", ", $numbersToRemove) . "<br>"; // Remove the selected numbers from the grid $remainingGrid = array_values(array_diff($grid, $numbersToRemove)); echo "Remaining numbers in the grid: " . implode(", ", $remainingGrid); ?> Explanation: range(1, 64): Creates the grid of numbers. shuffle($grid): Shuffles the numbers. array_slice($grid, 0, 10): Gets the first 10 numbers. array_diff(): Removes the unwanted numbers. array_values(): Reindexes the array to avoid display issues.
  2. I'm having the same problem ๐Ÿ˜• @David
  3. I made one for myself and I can send notifications to all users who have the app installed
  4. I activated it in my game, on my phone when I open the menu it does not close, I have to close it manually yes I see the new page edit2: the prison and hospital page doesn't load for me, it only loads if I refresh the page
  5. why?
  6. to decrease life, you have to increase the value of US_health 6000 = 0% life
  7. 100% life equals 0 And when life dies it goes to 6000
  8. I solved it by adding this to the init.php file: require 'class/FastImage.php'; I don't know if it's the correct way ๐Ÿ˜
  9. here in my country (brazil๐Ÿ™„) there is almost nothing related to text-based game by chance I found this forum with great content thank you very much ๐Ÿ™‚
  10. hello guys, i'm trying to create a system where i have 2 different languages in php and so far i have this code <?php // Start a Session, You might start this somewhere else already. session_start(); //global $lang; // What languages do we support $available_langs = array('en','pt','es'); // Set our default language session $_SESSION['lang'] = 'pt'; if(isset($_GET['lang']) && $_GET['lang'] != ''){ // check if the language is one we support if(in_array($_GET['lang'], $available_langs)) { $_SESSION['lang'] = $_GET['lang']; // Set session } } echo $lang['txt_TRADUCTION1']; echo '<br/>'; echo $lang['txt_TRADUCTION2']; echo '<br/>'; echo $lang['TESTANDO']; echo '<br/>'; echo $lang['txt_TRADUCTION4']; // Include active language include('teste/'.$_SESSION['lang'].'/'.$_SESSION['lang'].'.php'); ?> but he returns this error to me: Warning: include(teste/en/en.php): failed to open stream: No such file or directory in C:\xampp\htdocs\teste\index.php on line 33 Warning: include(): Failed opening 'teste/en/en.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\teste\index.php on line 33 and the files are in the proper folders en.php file that is inside the en / folder <?php $lang['txt_TRADUCTION1'] = 'Name'; $lang['txt_TRADUCTION2'] = 'Age'; $lang['txt_TRADUCTION3'] = 'Last Name'; $lang['txt_TRADUCTION4'] = 'Phone'; ?>
  11. hospital.zip Here it is ^^
  12. Bem-vindo โœŒ
  13. I noticed that pages like Login, Registration, Forgot password are still accessible to users, even if they are logged in if($this->user->loggedin){ header("Location:?page=" . $this->page->landingPage); exit; } more when you put this code in and if you are not logged in, it says that โ€œlogged inโ€ is not an object.
  14. wanted to know which language is better to be able to create a webview app
  15. it was really cool, did you use WebView to develop for ios? I wanted some tips because I looked for the xamarin forms language to develop and I was not very successful ๐Ÿ˜•
×
×
  • Create New...