Jump to content
MakeWebGames

gurpreet

Members
  • Posts

    834
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gurpreet

  1. Change lines 72-74 to this: echo '<a href="houses.php?page=sell&id='.$r['uhouseId'].'" target="_blank">Sell house</a>'; echo '<a href="houses.php?page=rent&id='.$r['uhouseId'].'" target="_blank">Rent house</a>'; echo '<a href="houses.php?page=upgrade&id='.$r['uhouseId'].'" target="_blank">Add upgrades</a></td>';
  2. I dont really understand the preg_match syntax, it's confusing me with all the numbers and symbols and stuff. Could anyone dumb it down a bit and maybe explain it?
  3. A lot of people are saying that filter_var doesn't work as well as preg_match, unless I'm misreading it?
  4. Could you please explain how you came to that so I can fix all of the other errors aswell? Thanks for that.
  5. I purchased Cronus' email verification mod a long time ago, and haven't looked at my website backup in over a year until today. I noticed when I put it on my WAMP server I got loads of errors to do with deprecated and I could fix them all except this one. I have no idea how to use preg_match properly, so maybe i could get some help? if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email) if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name   There are more but not sure if I can post them up
  6. Also, there is no need to add around Hitlist, just add it into the CSS class.   .txt_2 a { font-weight: bold; }   Hope this helps you out a little, but as stated i am not sure what source you're using, nor would i be familiar with it even if i did. :huh: Good luck! :thumbup: EDIT: Fixed a small mistake..
  7. That doesn't hange it to span class 2, or bold, even though 2 people are on the hitlist. I'm guessing the mysql_fetch_assoc is wrong. What do I have to use for that?
  8. Hey everyone, I have a small problem. I am trying to edit my header so that it will check if there are people on the hitlist. If there are, it will display the number in brackets. I have this so far: <?php $ifhit = "select status from hitlist"; $res = db_execute_return($ifhit); $r = mysql_fetch_assoc($res); if( $r == active) { echo "<span class="txt_2">[url="hitlist.php"][b]Hitlist[/b][/url]</span>"; } else { echo "<span class="txt_1">[url="hitlist.php"]Hitlist[/url]</span>"; ?>   The status is either 'active' which means they are on the htilist, or done, which means they have been killed. Also not sure if mysql_fetch_assoc is needed, still learning that stuff. All help is appreciated :)
  9. I'd wish for a trillion more wishes :) Then wish for all of the above then keep wishing whenever I wanted something :D
  10. I'm not good but I got 40 chopper gunners in 45 games yesterday on CoD :(
  11. Wouldn't a percentage be better? Say 0.5% because 50 may be high for some users, and low for others. Also could go into -
  12. Yes but........ if you test it out its dose not fed them....  Same for you test it give feed back then tell me what you think. Technically it does, but all of the queries must be done before the page can load (if i'm not mistaken) so before the page loads fully, you will be unfedded.
  13. $db->query("UPDATE users SET fedjail=300 WHERE user_level=2"); //Fed all people user_level 2 which is admin $db->query("UPDATE users SET fedjail=0 WHERE userid=1"); //Unfed userid 1   As you can see, it will fed then un-fed userid 1 :)
  14. That will fed them then unfed them if they are user 1. Why not:   $db->query("UPDATe users SET fedjail=300 WHERE userid!=1 & user_level=2");
  15. You won't get a good one for free. Get $50-$100 and pay for a full layout.
  16. mt_rand better?
  17. gurpreet

    Layout

    Buy one from Illegalife.
  18. True say...I forgot about that :P It would be quite easy to add a weapon to an NPC..Maybe for the NPC's stats, add up all of the gang members stats to make up that stat. E.G. - 10 members, all have 500 strength, 600 agi, etc. The NPC that attacks the gang would have 5000 strength, 6000 agi etc.
  19. Wow mate, this is a really unique idea and I love it...If there's any way I can help hit me up, I'll try to think of some ideas. If you can get this done....Then it'll be beyond amazing P.S.- What would the attack system be like? Will the NPCs have items/weapons? When it's attacking your gang (at the beginning) will it just decrease in HP per attack? Maybe this is a bit over the top, but every now and then in a fight, say every 10 fights, the NPC will do something that will send the attacker instantly to hospital and take their HP? Just to even out things because if everyone is just killing the NPC easily, it won't be hard to just finish it in an hour or so.
  20. Yeah, login could do with some work. In-game layout is very good though, simple and blends in nicely :) Maybe on the login, put the forms in the middle and add some more stuff so it's not so empty. Maybe use another effect other than Bevel & Emboss for the text.
  21. Maniak is saying it wil be MUCH simpler and easier if you used switch statements.   $_GET['game'] = isset($_GET['game']) && is_string($_GET['game']) ? strtolower(trim($_GET['game'])) : ""; switch($_GET['game']) { case 'index':index(); break; case 'darts':darts(); break; default:index(); break; } function index() { global $ir; print "<center>Welcome {$ir['username']} to the arcade.</center> <center><h3>Game List</h3></center>"; print "<table> <tr><td>[url='arcade.php?game=darts']Crazy Darts[/url]</td></tr> </table> [url='explore.php'][Go Back To The City][/url] "; }   Something like that, just add in more games. Also actually put in the games into functions
  22. Illusions never ceases to amaze us with his unique-ness :) Glad to hve you back, illusions :)
  23. Sounds good :)
  24. Way to bump a 3 and a half year old topic
  25. Illusions means instead of deleting the 'fixed' bugs, why not move them to a seperate section called 'fixed', so you can keep track of broken and fixed stuff :)
×
×
  • Create New...