Jump to content
MakeWebGames

The Ace

Members
  • Posts

    363
  • Joined

  • Last visited

    Never

Everything posted by The Ace

  1. Re: Horse Racing[v1 + v2] How do I make it easier for my users to win? Would it have something to do with this: $rand=(int) rand(1,100); Would I change the 100 to a lower number? Please reply ASAP! Thanks. :-P
  2. Re: Game info on login.... I just changed my game description to: ...['game_description']... I had written my description actually in the code...but since I changed it, it now shows up! Thanks all! :D
  3. Mine doesn't show up.... this is the info bit: {$set['MY GAME INFO']} Is there supposed to be a /set, or something, or don't I need the " ' " at the beginning and end? Please help me out! :-P EDIT: I am using V2, if that is any help at all....
  4. Re: [Free] Log Suspicious Users Thanks mate! It now works!!!! :-P Cheers, The Ace
  5. Re: Housing problem..... WeyHey! Thanks! It worked. :-P
  6. Whenever a user in my game doesn't have enough money to buy a house, it shows this: You do not have enough money to buy the . Here is the bit of code that displays the text: echo "You do not have enough money to buy the {$np['hrNAME']}.";   Any ideas as to why it only has a " . " and not the house name? :-P EDIT: I am using V2 and I am a beginner! :)
  7. Re: [mccode] Whore House Mod FREE   Is that for V1 or V2? And where do I put....coz I don't know what you really mean by add it to your daysold cron?
  8. Re: Times in phpMyAdmin.... Thanks.... Just Googleing PHP 101 now....gonna read up on it. Cheers.
  9. Re: Large Number.... Thanks a lot mate! Worked like a peach! :) lol. Cheers... :-P
  10. Re: Times in phpMyAdmin.... Where'dya put this: echo date('Y/m/d H:i:s', 1206567629);
  11. Re: Times in phpMyAdmin.... Nyna, how did you work it out? And thanks LostOne...will check it out now! :)
  12. I have no idea what time I did something, or something happened, because I can't read it. What time is this: 1206567629 and how do I tell all the other times of events, etc?
  13. Re: Large Number.... Do you mean the estate.php? Here it is: <?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); $_GET['property']=abs((float) $_GET['property']); if($_GET['property']) { $npq=$db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np=$db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for £{$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np=$db->fetch_row($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=0,maxwill=100 WHERE userid=$userid"); print "You sold your {$np['hNAME']} and went back to your wooden hut."; } } else { print "Your current property: [b]{$mp['hNAME']}[/b] The houses you can buy are listed below. Click a house to buy it. "; if($ir['maxwill'] > 100) { print "[url='estate.php?sellhouse']Sell Your House[/url] "; } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print "[url='estate.php?property={$r[']{$r['hNAME']}[/url] &nbsp - Cost: £{$r['hPRICE']} &nbsp - Will Bar: {$r['hWILL']} "; } } $h->endpage(); ?>
  14. Re: Large Number.... There is no money_formatter anywhere....is that for V1, coz I have V2.. :-P
  15. Here is what shows up in Estate Agents: Price: £1e+15 Will: 1e+11 How do I make so that the WHOLE number is shown and not exponential figures?
  16. Re: [Free] Log Suspicious Users Thanks...but is that is staff.php?
  17. Re: Lucky Boxes I take it you mean by adding a SQL query into my database? What would the query be to add the field of Super Lucky Boxes opened? (Soz....I don't really understand it all!) :)
  18. Re: EXP error Find in gym.php: $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid"); after add: $db->query("UPDATE `users` SET `exp` = {$ir['exp']} + {$_POST['amnt']} * {$ir['maxwill']} / 750 WHERE `userid` = $userid"); but change the 750 to whatever you like. Make it bigger to give less and smaller to give more exp! (I had the same problem!) :D
  19. I have made Super Lucky Boxes from the code of Lucky Boxes....and changed the lucky.php to superlucky.php (and I created superlucky.php). I made it so you can only open 3 Super Lucky Boxes...and the original 5 lucky boxes. Here's the problem: I open my 3 super lucky boxes, then go to open my 5 lucky boxes, but I can only open 2 lucky boxes instead of 5...because I had already opened 3 super lucky boxes....but I don't want them to be linked.....I would like to be able to open 3 super lucky boxes and 5 lucky boxes, so 8 in total, not 5. :) And help? :-P
  20. Re: [Free] Log Suspicious Users Please may somebody help me?!
  21. Re: Free 2 - Gym I'm sorry, but seeing as it is different to my previous gym, I don't know how to add in another query....I am just starting to learn properly. What would the query be, if you don't mind? :)
  22. Re: Free 2 - Gym Nice mod...but where would I put the gain exp bit: $db->query("UPDATE `users` SET `exp` = {$ir['exp']} + {$_POST['amnt']} * {$ir['maxwill']} / 750 WHERE `userid` = $userid");
  23. Re: House list in admin panel--V2 Nice mod...thanks. :)
  24. Re: [Free] Log Suspicious Users   I got the same Parse Error. But what is the rest of the function, and where do I put it? I'm using V2....
  25. Re: Explore.... I re-uploaded the original, then just copied what Wicked posted and added that in, and it seems to work fine now. Thanks for all your help peoples! lol :D
×
×
  • Create New...