Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Males only attack females and vice versa? try adding it with the rest of errors that match it lol
  2. Re: Gangs with same names because you put the code in wrong place......Look at the code... put the code AFTER $name = clean($_POST['name']); $desc = clean($_POST['desc']);   Why would you put it above that? The code is using $name. So obviously it has to be after where the variable is set.
  3. Re: logged in for * Total time logged in: 22 days, 18 hours and 19 minutes.
  4. Re: Males only attack females and vice versa? $error = ($attack_person['gender'] == $user_class['gender']) ? "No." : $error;
  5. Re: How good CronWerks/Cronus is I don't think that's flaming. He was just asking you to list Who it worked with and didn't.. I would personally be pissed if I payed $10 for a mod only to find it doesn't work with my carrier. EVEN if you said it works with "most". The word "Most" don't say anything.
  6. Re: Max money you have to change pages also.
  7. Re: [mccode] Cityname in Mainmenu Use an array, and you will get what you are looking for :)
  8. Re: Image pixel I'm sure you tried this, but just in case...
  9. Re: v2 gang OC up in the to right of page. you see Search. Type in Create organised crime I would bet a million dollars you get what you need.
  10. Re: staff log help if you can't trust them, then they don't need to be staff.. But if you really want to block them, just change the user_level to userid and put your ID :-P
  11. I'm looking to get a template for my new game, yes i know you need info.. But way I wanted to do it was have you contact me. So me some examples(Past Work) of yours If its the style im looking for ill show you a link to my game and you can see where im at. It will have to be unique. NO other site with it.. Codes clean. (no Hugh images killing speeds.). Thank you for taking time to read this and hope to hear from you. Please mail me here. Thanks again. Oh, yeah, yes I'm paying...I want something good lol.
  12. Re: [mccode v2] Casino Mod: Blackjack [$30] found bug, cant get him seems he is having trouble, here is fix. Open blackjack.php find:   else if($_GET['act']=='double') {   Add after   if($bb['betAmount'] * 2 > $ir['money']) { $fix_1 = sprintf("DELETE FROM blackjack WHERE userid = %u",abs(@intval($ir['userid']))); $fix_2 = sprintf("UPDATE users SET money = money + %u WHERE userid = %u",abs(@intval($bb['betAmount'])),abs(@intval($ir['userid']))); $db->query($fix_2); $db->query($fix_1); $error="You do not have that much money. Click here to start over. <a href=blackjack.php>HERE</a>."; }
  13. Re: [mccodes v2]Attack Hospital Recode It's just a recode like Miniman said. I just cleaned up the code. I took out a few lines they had cause they was pointless. like there was a fetch_row in there doing nothing at all.. Stuff like that.
  14. I have renamed my files. This is attackbeat.php on my game. I know that's not the name of the file originally in v2. This is the page when they attack a user and put them in the hospital. Hope you like it.   <?php $atkpage=1; include_once('globals.php'); if(!function_exists('clean')) { function clean($string) { $string = is_numeric($string) ? abs(@intval($string)) : mysql_real_escape_string($string); return $string; } } if(!function_exists('show')) { function show($string) { $string = is_numeric($string) ? number_format($string) : stripslashes($string); return $string; } } $_GET['ID'] = abs(@intval($_GET['ID'])); $_SESSION['attacking'] = 0; $ir['attacking'] = 0; $do_1 = sprintf("UPDATE `users` SET `attacking` = 0 WHERE `userid` = %u",clean($ir['userid'])); $db->query($do_1); $get_od = sprintf("SELECT `userid`, `username`, `gang`, `user_level` FROM `users` WHERE `userid` = %u",clean($_GET['ID'])); $od = $db->query($get_od); if($_SESSION['attackwon'] != $_GET['ID']) { echo 'Stop trying to cheat the game.'; echo '[url="index.php"]> Go Home[/url]'; exit; } if($db->num_rows($od)) { $r = $db->fetch_row($od); $get_gq = sprintf("SELECT `gangID`, `gangRESPECT` FROM `gangs` WHERE `gangID` = %u",clean($r['gang'])); $gq = $db->query($get_gq); $ga = $db->fetch_row($gq); if($r['hp'] == 1) { echo 'Stop trying to cheat the game.'; } else { echo sprintf('You beat %s. ',show($r['username'])); echo sprintf('You beat %s serverely on the ground.',show($r['username'])); $hosptime = mt_rand(50,150) + floor($ir['level']/2); $do_2 = sprintf("UPDATE `users` SET `hp` = 1, `hospital` = %u, `hospreason` = 'Hospitalized by <a href=\'viewusers.php?u=%u\'>%s</a>' WHERE `userid` = %u",clean($hosptime),clean($ir['userid']),clean($ir['username']),clean($r['userid'])); event_add(clean($r['userid']),sprintf("[url='viewuser.php?u=%u']%s[/url] beat you up.",clean($ir['userid']),show(clean($ir['username'])))); $atklog = clean($_SESSION['attacklog']); $do_4 = sprintf("INSERT INTO `attacklogs` VALUES('', %u, %u, 'Won', unix_timestamp(), -1, '$atklog')",clean($ir['userid']),clean($_GET['ID'])); $db->query($do_2); $db->query($do_4); $_SESSION['attackwon'] = 0; $get_warq = sprintf("SELECT `warID` FROM `gangwars` WHERE `warDECLARER` = %u AND `warDECLARED` = %u OR `warDECLARED` = %u AND warDECLARER = %u",clean($ir['gang']),clean($r['gang']),clean($ir['gang']),clean($r['gang'])); $warq = $db->query($get_warq); if($db->num_rows($warq) > 0) { $do_5 = sprintf("UPDATE `gangs` SET `gangRESPECT` = `gangRESPECT` - 1 WHERE `gangID` = %u",clean($r['gang'])); $do_6 = sprintf("UPDATE `gangs` SET `gangRESPECT` = `gangRESPECT` + 1 WHERE `gangID` = %u",clean($ir['gang'])); $db->query($do_5); $db->query($do_6); $ga['gangRESPECT']-=1; echo ' You earnt 1 respect for your gang.'; } if($ga['gangRESPECT']<=0 && $r['gang']) { $do_7 = sprintf("UPDATE `users` SET `gang` = 0 WHERE `gang` = %u",clean($r['gang'])); $db->query($do_7); $db->query("DELETE FROM `gangs` WHERE `gangRESPECT` <= 0"); $do_8 = sprintf("DELECT FROM gangwars WHERE warDECLARER = %u OR warDECLARED = %u",clean($ga['gangID']),clean($ga['gangID'])); $db->query($do_8); } if($r['user_level']==0) { $get_q = sprintf("SELECT `cb_money` FROM `challengebots` WHERE `cb_npcid` = %u",clean($r['userid'])); $q = $db->query($get_q); if($db->num_rows($q) > 0) { $cb = $db->fetch_row($q); $get_qk = sprintf("SELECT `userid` FROM `challengesbeaten` WHERE `userid` = %u AND `npcid` = %u",clean($ir['userid']),clean($r['userid'])); $qk = $db->query($get_qk); if($db->num_rows($qk) == 0) { $do_9 = sprintf("UPDATE `users` SET `money` = `money` + %u WHERE `userid` = %u",clean($cb['cb_money']),clean($ir['userid'])); $do_10 = sprintf("INSERT INTO `challengesbeaten` VALUES(%u, %u)",clean($ir['userid']),clean($r['userid'])); $db->query($do_9); $db->query($do_10); echo sprintf(' You gained $%s for beating the challenge bot %s',show($cb['cb_money']),show($r['username'])); } } } echo ' [url="index.php"]> Go Home[/url]'; } } else { echo 'Sorry, seems no user with that ID.'; } $h->endpage(); ?>   +1 If you use it :wink:
  15. Re: Free Advertising For Your Games I tried for 10 minutes to add a site it didn't work. Said invalid banner. So i left it blank and it said the exact same thing. :|
  16. Re: Can I have some help with users profiles? I think this would work for you.   $pic = !$r['display_pic'] ? ("<center>[img=http://i38.tinypic.com/29bh8d5.jpg]</center> ") : ("<center>[img=".$r[]</center> "); echo $pic;   The echo $pic; is the display of it. so put that where you want it displayed.
  17. Re: Energy Bar too long? Negative energy....... You need to find the problem with that...
  18. Re: Energy Bar too long? What karlos said will work. Its a workaround not a fix. If you want to fix it you need to fix it in the spot where you are letting them get over 100 energy and limit it their. I personally would not use what Karlos said. I would fix the problem. not workaround it. But if you want a simple fix Karlos' little script will work.
  19. Re: Only Let You Do Something When You Have Done A Course   if($_GET['make'] == 2) { $check = sprintf("SELECT inv_id FROM inventory WHERE inv_itemid = 8021 AND inv_itemid = 8022 AND inv_userid = %u",abs(@intval($ir['userid']))); $do_check = $db->query($check); if($db->num_rows($do_check) == 0) { echo "You do not have the sufficent ingredents yet. "; echo "[url='theflat.php']Back to the Flat[/url]"; } else { $check_2 = sprintf("SELECT courseid FROM coursesdone WHERE courseid = 3 AND userid = %u",abs(@intval($ir['userid']))); $do_check_2 = $db->query($check_2); if($db->num_rows($do_check_2) == 0) { echo "You have not done the course yet. "; echo "[url='theflat.php']Back to the Flat[/url]"; } else { item_add($ir['userid'], 8044, 1); item_remove($ir['userid'], 8021, 1); item_remove($ir['userid'], 8022, 1); echo "Congratulations, you crafted the Rolla Cola. "; echo "[url='theflay.php']Back to the Flat[/url]"; } } }
  20. Re: help with coding display http://us2.php.net/manual/en/reserved.v ... server.php
  21. Re: Weird problem They used 2 places cuase header is for them. and viewuser is for the person they are viewing.... Now the problem. i would guess your using a hex number? Not the word?
  22. Re: Deleting an item? Use your functions. v2 Has an item remove function.
  23. Re: SQL alter table users add steps int(11) not null default 100;
  24. Re: [MCCODES V2] Fighting stats just cleaned up Nice. I would use the one below me. $stat = mysql_fetch_object(mysql_query("SELECT `strength`, `agility`, `guard`, `labour` FROM `userstats` WHERE (`userid` = ". $ir['userid'] .")")); echo '<h2>Fighting Stats</h2>'. '<table border="1" width="100%">'. '<tr>'. '<th>Strength</th>'. '<th>Agility</th>'. '<th>Guard</th>'. '<th>Labour</th> '<th>Total Stats</th>'. '</tr>'. '<tr style="text-align: center;">'. '<td>'. $stat->strength .'</td>'. '<td>'. $stat->agility .'</td>'. '<td>'. $stat->guard .'</td>'. '<td>'. $stat->labour .'</td>'. '<td>'. ($stat->strength + $stat->agility + $stat->guard + $stat->labour) .'</td>'. '</tr>'. '</table>'; [/php] Why do you keep doing that on all post? There is no point. You didn't make it better.... v2 uses a db class that's why he used $db-> No need to use a fech_object there also why do you use ` all the time. and those () your making the script slower with all that.
  25. Re: cron_hour help they only pay out at 5pm "Server" time.. At quick glance I don't see antying wrong with the code there.
×
×
  • Create New...