
UCC
Members-
Posts
444 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by UCC
-
Re: [v2] Can't delete gang forum posts/ topics Off a quick look, I dont see a glaring problem. It might help if you posted exactly what line 703 and like 607 is. My forums are highly modified so I cant use my line counts to check
-
Re: [Free] [v1] Monkey Slaves Well $ir['money'] and $ir['crystals'] would tell you how much they have so make sure not to remove more than they currently have
-
Re: [mccode] quantify items automatically Um Excuse me, but why are you using such a script on 2.0? Mc Codes 2.0 does not need auto-grouping. Use the built in item_add() and item_remove() functions. But if you insist for god knows what random reason, you cannot use V1.1 queries such as mysql_query in a V 2.0 environment.
-
Re: [V1][V2] 50/50 Chance Mod. Free Version I have sold a couple mods, Marriage mod 2.0 a year ago when I could not find any version on here (including a 1.1 version to which I could modify). Then I sold superstreets which was a search the streets mod that uses a visual compass system and coordinates. And I threw this together because I didnt like seeing people ripped off. Otherwise, my mods are reserved for my games.
-
Re: [V1][V2] 50/50 Chance Mod. Free Version You are full of shit Iso and you know it. This mod works every bit as good as yours. What are you fucking 13? Grow up and deal with it. So what, you couldnt sell this POS random number mod for $20 bucks, it's not the end of the world. Maybe if you put some thought into a mod that was actually worth making, you wouldnt have this sort of thing to deal with. You have got to be joking "You don't get an as good version of 50/50." It's A 50/50 Mod, there is no such thing as a good version of it.
-
Re: [$20] 50 / 50 Chance Game The truth hurts and most people on here needs a solid dose of it.
-
Re: [V1][V2] 50/50 Chance Mod. Free Version The code is fully functional, does the exact same thing as yours (or as close as I could tell from your screenshots), and has absolutely no bugs. Your code isnt better. Stop whining because you're not able to rip people off on a shit mod that takes 20 minutes or less to make.
-
Re: Gang Forum Privacy Fix It's been a while since I started my game but I'm pretty sure this is NOT a v2.0 issue.
-
Re: BANK cap V2 There are Two reasons for the 2.1B issue. What Seany said and what I said. If you still have the problem, then you are doing something wrong. My original response was in response to gurpreet. If you are going negative, then you are withdrawing more money than you have and/or you have also not addressed the Int issues above.
-
Re: [$20] 50 / 50 Chance Game Maybe you should put your game and it's players over both cause this mod sucks.
-
Re: BANK cap V2 Step Away from the Computer and do not return until you get the game idea out of your head. DB Change BigInt 20 required
-
Re: [$20] 50 / 50 Chance Game It took less than a half hour to write and test starting from an empty notepad document. V1.0 code is not tested as well as V2.0 but I'm pretty sure there are no problems assuming you have money_formatter() built in. http://criminalexistence.com/ceforums/i ... ic=16169.0
-
Here you go. Enjoy. Nothing impressive but sure beats paying $20 for it. Two variables at the top can be used to set a minimum bet and a max games amount. CREATE TABLE `chance` ( `logID` int( 20 ) NOT NULL AUTO_INCREMENT , `userID` int( 11 ) NOT NULL default '0', `amount` int( 11 ) NOT NULL default '0', `active` tinyint( 1 ) NOT NULL default '0', PRIMARY KEY ( `logID` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1; chance.php -Version 2.0- <?php include "globals.php"; $minbet=100; $maxg=10; echo "<big>50 / 50 Chance Game</big> "; function add_game() { global $ir,$c,$userid, $db, $minbet, $maxg; if(!isset($_POST['amt'])) { echo "<big>Adding a game</big> <form action='chance.php?add=1' method='post'> Amount $<input type='text' name='amt' size=10 maxlength=10> <input type='submit' value='Add!'></form> ($maxg games max per user) [url='chance.php']Back[/url]"; } else { $_POST['amt'] = abs((int) $_POST['amt']); if($_POST['amt'] < $minbet){echo "The minimum bet is $minbet [url='chance.php?add=1']Back[/url]";exit;} $checkcount=$db->query("SELECT logID FROM chance WHERE userID={$ir['userid']} and active=1"); if($db->num_rows($checkcount) > ($maxg-1)){echo "There is a maximum of $maxg games per user. [url='chance.php']Back[/url]";exit;} if($ir['money'] < $_POST['amt']){echo "You cannot afford that amount. [url='chance.php']Back[/url]";exit;} $db->query("UPDATE users SET money = money - {$_POST['amt']} WHERE userid = {$ir['userid']}"); $ir['money']=$ir['money'] - $_POST['amt']; $db->query("INSERT INTO chance VALUES ('', {$ir['userid']}, {$_POST['amt']}, 1)"); echo "Your game has been set. Good Luck. [url='chance.php']Back[/url]"; } } function view_games() { global $ir,$c,$userid, $db, $maxg; $q=$db->query("SELECT c.*, u.username FROM chance c left join users u on u.userid = c.userID WHERE c.active = 1 ORDER BY c.logID ASC"); echo "[url='chance.php?add=1']Add Game[/url] Table of users awaiting a challenge <table class='table' width=50%><tr><th>Game ID</th><th>User</th><th>Amount</th><th>Challenge</th><th>Cancel</th></tr>"; if($db->num_rows($q) < 1){echo "<tr><td colspan=5>There are currenly no challenges</td></tr>";} while($r=$db->fetch_row($q)) { echo "<tr><td>{$r['logID']}</td><td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userID']}]</td><td>".money_formatter($r['amount'])."</td><td>[url='chance.php?chal={$r[']Challenge[/url]</td><td>"; if($ir['userid']==$r['userID']){echo "[url='chance.php?cancel={$r[']Cancel[/url]";} echo "</td></tr>"; } echo "</table>"; } function dogame() { global $ir,$c,$userid, $db; $_GET['chal'] = abs((int) $_GET['chal']); $q=$db->query("SELECT c.*, u.username from chance c LEFT JOIN users u ON c.userID = u.userid Where c.logID={$_GET['chal']} AND c.active = 1 LIMIT 1"); if($db->num_rows($q) > 0) { $r=$db->fetch_row($q); if($ir['money'] < $r['amount']){echo "You cannot afford the challenge amount. [url='chance.php']Back[/url]";exit;} if($ir['userid'] == $r['userID']){echo "You cannot accept your own challenge. [url='chance.php']Back[/url]";exit;} if(rand(1,2) == 1) { $winner=$r['userID']; $loser=$ir['userid']; $winnername=$r['username']; $losername=$ir['username']; $tstring="Sorry, you Lost. Better luck next time. [url='chance.php']Back[/url]"; $db->query("UPDATE users SET money = money - {$r['amount']} WHERE userid={$ir['userid']}"); $db->query("UPDATE users SET money = money + ({$r['amount']} * 2) WHERE userid={$r['userID']}"); } else { $winner=$ir['userid']; $loser=$r['userID']; $winnername=$ir['username']; $losername=$r['username']; $tstring="You Won! Congratulations! You Won ".money_formatter($r['amount'])." [url='chance.php']Back[/url]"; $db->query("UPDATE users SET money = money + {$r['amount']} WHERE userid={$ir['userid']}"); } event_add($winner, "The game of ".money_formatter($r['amount'])." challenged by [url='viewuser.php?u={$r[']{$r['username']}[/url] was won by [url='viewuser.php?u={$winner}']{$winnername}[/url].", $c); event_add($loser, "The game of ".money_formatter($r['amount'])." challenged by [url='viewuser.php?u={$r[']{$r['username']}[/url] was won by [url='viewuser.php?u={$winner}']{$winnername}[/url].", $c); $db->query("UPDATE chance SET active = 0 WHERE logID={$_GET['chal']}"); echo $tstring; } else { echo "This game has either been cancelled or someone played before you got the chance. [url='chance.php']Back[/url]"; exit; } } function cancel() { global $ir,$c,$userid, $db; $_GET['cancel'] = abs((int) $_GET['cancel']); $q=$db->query("SELECT * from chance where logID={$_GET['cancel']} AND active = 1"); if($db->num_rows($q) > 0) { $r=$db->fetch_row($q); $db->query("UPDATE users SET money = money + {$r['amount']} WHERE userid = {$ir['userid']}"); $ir['money']=$ir['money'] + $r['amount']; $db->query("UPDATE chance SET active = -1 WHERE logID = {$_GET['cancel']}"); echo "The game has been cancelled, and your money has been returned. [url='chance.php']Back[/url]"; } else { echo "This game has already been canceled, does not exist, or someone already played. [url='chance.php']Back[/url]"; } } if(isset($_GET['cancel'])){cancel();} elseif(isset($_GET['chal'])){dogame();} elseif(isset($_GET['add'])){add_game();} else{view_games();} ?> chance.php -Version 1.0- <?php /*----------------------------------------------------- -- 50/50 Chance (Free Source) -- Copyright held 2007-2008 UCC -- chance.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $minbet=100; $maxg=10; echo "<big>50 / 50 Chance Game</big> "; function add_game() { global $ir,$c,$userid, $minbet, $maxg; if(!isset($_POST['amt'])) { echo "<big>Adding a game</big> <form action='chance.php?add=1' method='post'> Amount $<input type='text' name='amt' size=10 maxlength=10> <input type='submit' value='Add!'></form> ($maxg games max per user) [url='chance.php']Back[/url]"; } else { $_POST['amt'] = abs((int) $_POST['amt']); if($_POST['amt'] < $minbet){echo "The minimum bet is $minbet [url='chance.php?add=1']Back[/url]";exit;} $checkcount=mysql_query("SELECT logID FROM chance WHERE userID={$ir['userid']} and active=1"); if(mysql_num_rows($checkcount) > ($maxg-1)){echo "There is a maximum of $maxg games per user. [url='chance.php']Back[/url]";exit;} if($ir['money'] < $_POST['amt']){echo "You cannot afford that amount. [url='chance.php']Back[/url]";exit;} mysql_query("UPDATE users SET money = money - {$_POST['amt']} WHERE userid = {$ir['userid']}"); $ir['money']=$ir['money'] - $_POST['amt']; mysql_query("INSERT INTO chance VALUES ('', {$ir['userid']}, {$_POST['amt']}, 1)"); echo "Your game has been set. Good Luck. [url='chance.php']Back[/url]"; } } function view_games() { global $ir,$c,$userid, $maxg; $q=mysql_query("SELECT c.*, u.username FROM chance c left join users u on u.userid = c.userID WHERE c.active = 1 ORDER BY c.logID ASC"); echo "[url='chance.php?add=1']Add Game[/url] Table of users awaiting a challenge <table class='table' width=50%><tr><th>Game ID</th><th>User</th><th>Amount</th><th>Challenge</th><th>Cancel</th></tr>"; if(mysql_num_rows($q) < 1){echo "<tr><td colspan=5>There are currenly no challenges</td></tr>";} while($r=mysql_fetch_array($q)) { echo "<tr><td>{$r['logID']}</td><td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userID']}]</td><td>".money_formatter($r['amount'])."</td><td>[url='chance.php?chal={$r[']Challenge[/url]</td><td>"; if($ir['userid']==$r['userID']){echo "[url='chance.php?cancel={$r[']Cancel[/url]";} echo "</td></tr>"; } echo "</table>"; } function dogame() { global $ir,$c,$userid; $_GET['chal'] = abs((int) $_GET['chal']); $q=mysql_query("SELECT c.*, u.username from chance c LEFT JOIN users u ON c.userID = u.userid Where c.logID={$_GET['chal']} AND c.active = 1 LIMIT 1"); if(mysql_num_rows($q) > 0) { $r=mysql_fetch_array($q); if($ir['money'] < $r['amount']){echo "You cannot afford the challenge amount. [url='chance.php']Back[/url]";exit;} if($ir['userid'] == $r['userID']){echo "You cannot accept your own challenge. [url='chance.php']Back[/url]";exit;} if(rand(1,2) == 1) { $winner=$r['userID']; $loser=$ir['userid']; $winnername=$r['username']; $losername=$ir['username']; $tstring="Sorry, you Lost. Better luck next time. [url='chance.php']Back[/url]"; mysql_query("UPDATE users SET money = money - {$r['amount']} WHERE userid={$ir['userid']}"); mysql_query("UPDATE users SET money = money + ({$r['amount']} * 2) WHERE userid={$r['userID']}"); } else { $winner=$ir['userid']; $loser=$r['userID']; $winnername=$ir['username']; $losername=$r['username']; $tstring="You Won! Congratulations! You Won ".money_formatter($r['amount'])." [url='chance.php']Back[/url]"; mysql_query("UPDATE users SET money = money + {$r['amount']} WHERE userid={$ir['userid']}"); } event_add($winner, "The game of ".money_formatter($r['amount'])." challenged by [url='viewuser.php?u={$r[']{$r['username']}[/url] was won by [url='viewuser.php?u={$winner}']{$winnername}[/url].", $c); event_add($loser, "The game of ".money_formatter($r['amount'])." challenged by [url='viewuser.php?u={$r[']{$r['username']}[/url] was won by [url='viewuser.php?u={$winner}']{$winnername}[/url].", $c); mysql_query("UPDATE chance SET active = 0 WHERE logID={$_GET['chal']}"); echo $tstring; } else { echo "This game has either been cancelled or someone played before you got the chance. [url='chance.php']Back[/url]"; exit; } } function cancel() { global $ir,$c,$userid; $_GET['cancel'] = abs((int) $_GET['cancel']); $q=mysql_query("SELECT * from chance where logID={$_GET['cancel']} AND active = 1"); if(mysql_num_rows($q) > 0) { $r=mysql_fetch_array($q); mysql_query("UPDATE users SET money = money + {$r['amount']} WHERE userid = {$ir['userid']}"); $ir['money']=$ir['money'] + $r['amount']; mysql_query("UPDATE chance SET active = -1 WHERE logID = {$_GET['cancel']}"); echo "The game has been cancelled, and your money has been returned. [url='chance.php']Back[/url]"; } else { echo "This game has already been canceled, does not exist, or someone already played. [url='chance.php']Back[/url]"; } } if(isset($_GET['cancel'])){cancel();} elseif(isset($_GET['chal'])){dogame();} elseif(isset($_GET['add'])){add_game();} else{view_games();} ?>
-
Re: [$20] 50 / 50 Chance Game I tried to keep my response simple, you asked for more, and then decided to defend your sorry excuse for a mod. Yes, you pushed me over the edge. I am embarassed as it is that I dont already have this in the free section, but I am at my day job right now and cant really work on personal stuff.
-
Re: [$20] 50 / 50 Chance Game Its called natural selection and it improves the population long term
-
Re: [$20] 50 / 50 Chance Game Who the hell cares if it is distributed for free? Its Junk. Seriously, you pushed me over the edge. This will be released by yours truely on the free section by the end of the day.
-
Re: [$20] 50 / 50 Chance Game There is so much wrong with this mod, i dont know where to begin. First, it is a 50/50 random number generator. The fact that you would sell rand(1,2) as a mod boggles the mind. Then on top of that, you actually decided to polish the turd by adding multiple challenges, events, accept, cancel, max games per user etc. You basically spent at least an hour trying to make a rand(1,2) mod look like it was the next best thing to come across the game scene. And you charge $20 for it!!!!! There are a lot more interesting mods out there for $20 or less. Certainly more interesting than this junk I could write in my sleep. And to top it off, you have General Doom and Khanhdom giving you props for this sorry excuse for a paid mod. They should be shot.
-
Re: [$20] 50 / 50 Chance Game You have got to be fucking kidding me. wow.
-
Re: Which Programming Language are You?
-
buy hosting but cannot do cron job..what must i do?
UCC replied to nypthamine's topic in General Discussion
Re: buy hosting but cannot do cron job..what must i do? If you have a POS game, that strategy works. But it is not reliable. I've tested these sites and you cannot depend on them. If you have a serious game with serious players, you need to handle your own crons on a decent server -
Re: How much is your site worth $20K according to them
-
Re: An 2D Map Game Go Big or Go Home
-
This is a long shot question, I wasnt going to post but since I logged in to reply to Scarlet, I thought I would post this too. Does anyone know how to prevent users from playing a PHP game via tabbed Firefox browsing? The ability to refresh multiple tabs at the same time can create an unfair advantage. I dont think it is even possible to detect when users are doing this. Any ideas?
-
Re: Make Money from Your Site with these tips ! You can control content, keeping in mind it is all Products not your typical advertisement. Actually, I think the content control is too much for it's own good. I have to be as specific as Shoes or XBox 360 Games, for example, or rely on their crawler to determine the best product. However, since I operate games which require you to login, I dont think the crawler will really work. So you could still keep your displays focused on console games etc.
-
Re: Make Money from Your Site with these tips ! Anyone heard of Widget Bucks? Another way to make money off your site. They claim over $2 eCPM which is quite good and offer a $25 signup bonus. Link: