UCC
Members-
Posts
444 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by UCC
-
Re: v2 Gym problem I want to know what 400 days has to do with the price of tea in china
-
Re: v2 Gym problem Since nobody is pointing out exactly where you are confused The format is <= Or >= = Always goes second
-
Re: (v2 attack.php question) I use this, not sure if it is plug and play into stock code or not. My attack file is highly modified. It looks pretty basic so it should work. if(($odata['hp'] < ($odata['maxhp'] / 2)) && $_SESSION['attacking'] == 0) { print "You cannot attack a player until they have 1/2 their max health. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; }
-
Re: PHP script to create email address and sub domains. I wonder why every PHP post I see from Will makes me think he is up to no good?
-
Multiple banking cron problems that are similar
UCC replied to Godhand's topic in General Discussion
Re: Multiple banking cron problems that are similar Your first query looks fine at first look, the second two are missing ) midway through -
Re: Cime problems I dont know the answer, my host allows me to use eval
-
Re: Cime problems http://criminalexistence.com/ceforums/i ... ic=14412.0
-
Re: DOnate mod help Well it seems to be like you are not even using ipn_donator.php or ipn_items.php, basically anything that will actually process the donation. Donatordone.php does not process the donation, it only informs the user of what happened.
-
Re: How do I delete orphaned data Or you could do exactly what I said, *Gasp*
-
Re: How do I delete orphaned data I do something like delete from userstats where userid not in (select userid from users) I dont claim it to be the most efficient query, but it works.
-
Re: Crime Problems Posting Mc Code 2.0 code on here in detail is prohibited. I think you get that error because although you have a crime group, you have no crimes to go under it. Make a crime for that group and try again What does it say after..... QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', 10)' at line 1 It usually displays the query.
-
Re: Crimes dont work That logic does not compute with me. Why would you go through all that effort when the fix is oh so easy? The whole idea of solving one's problem by getting new code from someone else boggles my mind.
-
Re: Crimes dont work If I am counting your fields correctly, your input for crimeSUCCESSCRYS does not exist. I would make sure you enter a Zero into that field if it exists. You might also want to add apostrophies around that field in the query. I dont know your code exactly but I'm guessing '{$_POST['crimeSUCCESSCRYS']}'
-
Re: Two questions regarding attacking This is not the Mc Code forum
-
Re: Deleting inactive players Yea why dont you get the sellers to fix their work?
-
Re: When is it ok to lie? I dont lie as a general rule. Here is the scenario when it is okay. When the lie benefits the other person When telling the truth would not hurt the other person When you have nothing to gain by doing so
-
Re: Online Cricket Management Game I have certainly seen places where AND works but just to be safe you should use && and || just to make sure you have no issues
-
Re: Game in Different Languages. I have really wanted to make a spanish language version of 2.0 but modifying every single page in my game is not something I am inclined to do. There is just sooo much text to modify
-
Re: Online Cricket Management Game Apparently General Doom doesnt know how if/else statements work. My code was very bit as valid, and much more simple. And of course Ferdi is correct with ||
-
Re: [Free] [v1] Monkey Slaves Well that is certainly bizarre. So the rest of your game is working but this doesnt?? That doesnt make much sense.
-
Re: [Free] [v1] Monkey Slaves well give us more info. It's not often I am in a helpin mood. Did you run the DB updates? ALTER TABLE `users` ADD `monkey_hunger` INT( 25 ) NOT NULL DEFAULT '100'; ALTER TABLE `users` ADD `monkeys` INT( 25 ) NOT NULL DEFAULT '0';
-
Re: [Free] [v1] Monkey Slaves I didnt test but try this <?php include "globals.php"; echo "<center><h3>Monkey Slaves</h3> <table border='1' width='80%'><tr><td align='center'><u>Monkey Stats</u></td></tr> <tr><td> - Monkey Slaves: {$ir['monkeys']} - Monkey Hunger: {$ir['monkey_hunger']} </td></tr><tr><td align='center'> <u>Monkey Options</u></td></tr><tr><td> Buy Monkeys: <form action='monkeys.php' method='POST'> <input type='text' name='amount'> <input type='submit' name='submit' value='Buy'> </form> ($2000 per monkey) [ [url='monkeys.php?go=feed']Feed Monkeys ($1000 per monkey)[/url] ] [ [url='monkeys.php?go=search']Search (10 Hunger)[/url] ] </td></tr></table> "; if ($_POST['amount']>'0') { $_POST['amount']= abs(@intval($_POST['amount'])); $price=$_POST['amount']*2000; if ($ir['money']<$price) { echo "Sorry you do not have enough!"; $h->endpage(); exit; } echo "You bought {$_POST['amount']} Monkey Slave(s)!"; $amount=htmlspecialchars(mysql_real_escape_string($price)); $newmonkeys=$ir['monkeys']+$_POST['amount']; $newmoney=$ir['money']-$amount; $db->query("UPDATE users SET monkeys='$newmonkeys' WHERE userid=$userid"); $db->query("UPDATE users SET money='$newmoney' WHERE userid=$userid"); $h->endpage(); exit; } if ($_GET['go']=='feed') { $moneyrequired=$ir['monkeys']*1000; if ($moneyrequired<'1000') { echo "You cannot afford to feed your monkeys!"; $h->endpage(); exit; } if ($ir['monkey_hunger']>='100') { echo "Your monkeys dont need feeding!"; $h->endpage(); exit; } echo "You fed your monkeys!"; $db->query("UPDATE users SET monkey_hunger='100' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$moneyrequired WHERE userid=$userid"); $h->endpage(); exit; } if ($_GET['go']=='search') { if ($ir['monkeys']<'1') { echo "You have no monkeys!"; $h->endpage(); exit; } if ($ir['monkey_hunger']<'10') { echo "Your monkeys are to hungry to search!"; $h->endpage(); exit; } $rand=mt_rand(1,3); if ($rand=='1') { echo "Your monkeys find {$ir['monkeys']} crystals all over the place!"; echo " [url='monkeys.php?go=search']Try Again[/url]"; $crystals=$ir['monkeys']+$ir['crystals']; $safecrystals=mysql_real_escape_string($crystals); $db->query("UPDATE users SET crystals='$safecrystals' WHERE userid=$userid"); $db->query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid"); $h->endpage(); exit; } if ($rand=='2') { $randcash=mt_rand(1,50); $cash=$ir['money']+($ir['monkeys']*$randcash); $safecash=mysql_real_escape_string($cash); echo "Your monkeys found you $$safecash!"; echo " [url='monkeys.php?go=search']Try Again[/url]"; $db->query("UPDATE users SET money='$safecash' WHERE userid=$userid"); $db->query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid"); $h->endpage(); exit; } if ($rand=='3') { echo "Your monkeys found jack all, Unlucky!"; echo " [url='monkeys.php?go=search']Try Again[/url]"; $db->query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid"); $h->endpage(); exit; } } $h->endpage(); ?> $db->query(UPDATE users SET monkeys=monkeys-1 WHERE monkey_hunger<=0 AND monkeys>0"); $db->query("UPDATE users SET monkey_hunger=monkey_hunger-5 WHERE monkey_hunger>0");
-
Re: Online Cricket Management Game I dont exactly understand what piece of the puzzle you are addressing but... $x=rand(1,100) if($x <= 50) { } else if($x <= 80) { } else { }
-
Re: MCCODES + Graphic It really depends on what version of code you are using and what kind of layout you have. V2.0 should be easy V1.1 depends on what kind of layout you have and if you are doing an include on each page as part of your layout theme
-
Re: Attack Daysold Limit Give a man a fish, feed them for a day Teach a man to fish, feed them for a lifetime There are few times I choose to help people, and everytime I do, they think they know everything