Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. a_bertrand needs to pay more attention in classes! answer was about Android! :P
  2. They also use C and C++ ;)
  3. This would be a good option... yet i think you don't find it available anywhere
  4. It reminds me much this one... http://makewebgames.io/showthread.php/38194-Bank-(2-in-1). hehe ;)
  5. Then you have some problem somewhere... The query i pasted last works with no problem...
  6. INSERT INTO `crimes` (`crimeID`, `crimeNAME`, `crimeBRAVE`, `crimePERCFORM`, `crimeSUCCESSMUNY`, `crimeSUCCESSCRYS`, `crimeSUCCESSITEM`, `crimeGROUP`, `crimeITEXT`, `crimeSTEXT`, `crimeFTEXT`, `crimeJTEXT`, `crimeJAILTIME`, `crimeJREASON`, `crimeXP`) VALUES (1, 'Search the Bins for Cash', 2, '(WILL*1000/1)', 6, 0, 0, 1, 'You walk around looking for a bin to search for cash!', '<font color=green>You begin moving rubbish inside the bin,Then you find a burger wrapper in the bin with <b>${money}</b> scrunched inside!</font>', '<font color=brown>You begin moving rubbish inside the bin,You feel the bottom of the bin and realise their is nothing inside.</font>', '<font color=red>You begin moving rubbish inside the bin,Then you hear <b>OI!</b>, You run ,But you couldnt hide no where! \"Your Nicked!\"</font>', 2, 'Caught looting the bins', '0.5000')
  7. Escape these as well "Your Nicked!"
  8. You need to escape the "couldn't"... It should go in the DB as "couldn\'t" and strip slashes when displaying the message
  9. You simply need to STOP the action after the error message   if($_POST['depositba']>$ir['money']) { echo "You don't have enough money to deposit this amount. <a href='banking.php'>Back to the bank</a> <a href='explore.php'>Back to town</a>"; $h->endpage(); exit; }
  10. can be as simple as... $_L001 = "some text"; $_L002 = "more text"; ... And replacing on every single place for the correspondent var, hold the vars inside some file.lang.php include it on a file that allows you to have it available widely and of you go.
  11. JavaScript cannot directly execute serverside code, since it runs on the client, which you seem to have a grasp on already. What AJAX (just a fancy acronym for a variety of techniques) does is simple. The script indirectly executes serverside code by requesting a new page, preferably asynchronously and in the background so the client won't have to wait for a page reload etc. Since the server must know what data it should send back, you need to send some kind of data/instructions. You can either append it to the url as a querystring (a GET request) or make a POST request, like forms do. The instruction telling the server what to do could just as well had been the name of the requested document or placed into a custom header (not guaranteed to reach the server), but grabbing GET or POST data serverside is a bit more convenient. The reply from the server could be anything from partial (X)HTML, which could be inserted somewhere on the page, or some other form of data which the clientside script knows how to parse. XML is often used for this, which is why it got called Asynchronous JavaScript And XML.
  12. A Leprechaun?
  13. you are placing php inside js, you can't... try this way though not sure if it works as i don't see the rest of the code...   tooltips[3]=["images/items/<?php echo $i['itmpic']; ?>"]
  14. Easter Bunny?
  15. attack_power = stat+stat+stat+whatever defense_power = stat+stat+stat+whatever outcome = attack_power-defense_power Maybe with some random factor in the middle and you're done
  16. have fun. http://php.net/manual/en/book.image.php
  17. Lithium

    wtm

    points / 10 = rankpoints ... how hard can this be?
  18. SRB is correct... filter_var() does not use regex, so most likely would be you having to make a lot of recode.
  19. http://www.php.net/manual/en/function.preg-match.php
  20. if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)   this ought to work as expected...
  21. I wonder why! ;) hehe
  22. Danny, following Spud's tips, check Euro CV format, most widespread and compliant everywhere you send it! http://europass.cedefop.europa.eu/europass/home/hornav/Downloads/EuropassCV/CVTemplate.csp Check that
  23. <td><a href="http://houses.php?page=move&id='.$r['uhouseId'].'" target="_blank">Move in</a>
  24. Assuming this is line 64 <td><a href="http://houses.php?page=move&id='.$r['uhouseId'].'" target="_blank">Move in</a>   Maybe it can be fixed if you correct this -> ' Spotted one more... so fix those and you most likely have that running fine Note: Someone place these on the proper thread!
  25. If you have read the damn thread the answer would be right in front of your eyes!
×
×
  • Create New...