Jump to content
MakeWebGames

CrazyT

Members
  • Posts

    708
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by CrazyT

  1. Re: [mccodes][V2]changable currency mod   Was on about the preferences bit :/
  2. Re: [McCodes v2] ($3) Database driven voting script with incentive and security So what did you use to do that to strats
  3. Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...   I've already done that :P lol 1 little thing and done :).. also made a thing so you can get less or more money for you house at random of the house price.
  4. Re: Let see   @plintu.. if he used {} around it he would get a syntax error unexpected {
  5. Re: [mccodes][V2]changable currency mod Looks nice dayo.. what about security also instead of 2 functions can use one :P
  6. Re: [mccode] Cityname in Mainmenu   Then just do like.. include('explore'. $ir['location'] .'.php'); Then that will include the explore page to what city your in..
  7. Re: [mccode] Cityname in Mainmenu I prefer to use *mysql_fetch_object faster to write than mysql_fetch_assoc and mysql_fetch_array for example.. $city->city_name Is faster to write than: $city['city_name']
  8. Re: [McCodes v2] ($3) Database driven voting script with incentive and security   Is it ioncubed?
  9. Re: Function help You can't use a function inside another function.. you can call the function yeah..
  10. Re: Forum Spam Help Just add another field to users then user a cron.. then use IF();
  11. Re: [mccode] Script For Header You need to global $db; Hope it helps..
  12. Re: [MCCODES v2] Job display in viewuser.php     I think you've completely miss-understood. It's not that people of CE don't want to give you help....You don't know a thing about what your doing or where you plan to go with it. You don't know the basics of HTML, PHP, Mysql and whatever, yet still, you jumped straight into a game for some cash. Then when your game fails, you'll come back here asking for help. I guess people are just used to this :wink: I think everyone, doe's lol.. Put a game up just to take the money when the game die's they sell it make a new one do the same thing over and over again.
  13. Re: CE Server Yeah sometimes it goes slow for me to.. I ask people on msn, slow for them too. Sometime(s) it don't load.
  14. Re: [MCCODES v2] Job display in viewuser.php You could of done this: print "Username: {$r['username']} Userid: {$r['userid']} Job: {$r['job']} echo "Job Rank: {$r['job_rank_name']}"; If you can't find the error pm me, your viewuser.php or post it here.
  15. Re: Skull City   What do you suggest I do to improve on whatever you thought was rubbish Well, reset your game make it harder for everyone (includeing you), no cheating. Make it harder to level up, get money, ect... I just had a reset lmao LOL :D
  16. Re: [MCCODES v2] Job display in viewuser.php   You mailed me when you could of posted it here. Because.. you need to add it before you stop the print statement.. or you have added it inside it :D
  17. CrazyT

    Hey Ho Mo Go

    Re: Hey Ho Mo Go   LOL.. Hey Monkeh Welcome to the forums. :D
  18. Re: [v2] New Header   LOL same here, i was like wtf? lol
  19. Re: [MCCODES v2] Job display in viewuser.php   $db->query( "SELECT u.*,us.*,c.*,h.*,g.*,f.*,j.`jNAME` AS `job`, jr.`jrNAME` AS `job_rank_name` ". "FROM `users` AS `u` ". "LEFT JOIN `userstats` AS `us` ON (u.`userid` = us.`userid`) ". "LEFT JOIN `cities` AS `c` ON (u.`location` = c.`cityid`) ". "LEFT JOIN `houses` AS `h` ON (u.`maxwill` = h.`hWILL`) ". "LEFT JOIN `gangs` AS `g` ON (g.`gangID` = u.`gang`) ". "LEFT JOIN `fedjail` AS `f` ON (f.`fed_userid` = u.`userid`) ". "LEFT JOIN `jobs` AS `j` ON(j.`jID` = u.`job`) ". "LEFT JOIN `jobranks` AS `jr` ON(j.`jFIRST` = jr.`jrID`) ". "WHERE ((j.`jID` = u.`job`) && (u.`userid` = '{$_GET['u']}'))"); With job name and job rank. to show job rank you will do: echo $r['job_rank_name']; To show there job. echo $r['job']; Whats so hard about it?
  20. Re: [MCCODES v2] Job display in viewuser.php   It helps but... the full correct code is this: $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.*,j.`jNAME` AS `job` FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid LEFT JOIN jobs AS j ON j.jID=u.job WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0)   Until now it works perfectly This code shows the job type, i wonder if there can be added a comma (symbol ",") or another row and add a variable for the job rank (important to the employers in the same job type)... The one i posted worked..
  21. Re: [mccodes V2] Nuclear Bomb   Whats so advanced about it ???
  22. Re: [mccodes V2] Nuclear Bomb   <?php include_once 'globals.php'; if ($ir['gift'] > 0) { echo "Sorry, You Can Only Do This Once A Day"; $h->endpage(); exit; } switch(mt_rand(1,6)) { case 1: $db->query('UPDATE `users` SET `gift` = (`gift` + 1), `money` = (`money` + 750) WHERE `userid` = '. $ir['userid']); echo "Today You Have Been Give $750.00"; break; case 2: $db->query('UPDATE `users` SET `money` = (`money` + 1500), `gift` = (`gift` + 1) WHERE `userid` = '. $ir['userid']); echo "Today You Have Been Given $1500.00"; break; case 3: $db->query('UPDATE `users` SET `turns` = (`turns` + 75), `gift` = (`gift + 1), `crystals` = (`crystals` + 15) WHERE `userid` = '. $ir['userid']); echo "Today You Have Been Given 14 Crystals And 75 steps to walk the streets"; break; case 4: $db->query('UPDATE `users` SET `bomb` = (`bomb` + 1), `gift` = (`gift` + 1), `crystals` = (`crystals` + 22) WHERE `userid` = '. $ir['userid']); echo "Today You Have Been Given 22 Crystals And A Nuclear Bomb"; break; case 5: $db->query('UPDATE `users` SET `exp` = (`exp` + 30), `gift` = (`gift` + 1) WHERE `userid` = '. $ir['userid']); echo "Today You Were Given A Decent Amount Of Exp You Got 30"; break; case 6: $db->query('UPDATE `users` SET `jobpoints` = (`jobpoints` + 10), `gift` = (`gift` + 1) WHERE `userid` = '. $ir['userid']); echo "Today You Have Been Given 10 Job Points"; break; } $h->endpage(); ?> Would be 10x better less queries.. *not tested. You could also make a config for it.. eg. $config = array ( 'streets' = array ( 'money' => mt_rand(1,500), 'crystals' => mt_rand(1,50), 'bomb' => mt_rand(1,5) ) ); Then do like for the query.. $db->query('UPDATE `users` SET `money` = (`money` + '. $config['streets']['money'] .') WHERE `userid` = '. $ir['userid']);
  23. Re: Skull City   What do you suggest I do to improve on whatever you thought was rubbish Well, reset your game make it harder for everyone (includeing you), no cheating. Make it harder to level up, get money, ect...
  24. Re: Staff_factions   function absint($in, $neg=1) { if($neg) { return abs((int) $in); } else { return (int) $in; } } What the hell?
  25. Re: [v2] New Header Bah: if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } If someone don't set a email address on your game, they can't play the game =)
×
×
  • Create New...