
Newbie
Members-
Posts
289 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Newbie
-
i used to have a mafia creator game ages ago and it had something like this on it User could buy a casino building for credits add money to the casino bank and take out if the user is bankrupted the casino is took off them and is up for sale again.
-
i did change it in docrime.php and still failed would i didnt think i changed it in the crimes table now that i think about it
-
I was using it as a example but something higher like 15 respect per $10.000 they earn sounds alright
-
this does work thanks but messes up my crimes cant pass any crimes at all thanks for trying Iam still looking for someone to help me on this What i need 1. Instead of gaining exp to level up i would like it to be respect so every crime you do earns you respect based on the money you earn ( say for every $1,000,000 you make gives you 100 respect ) 2. Thats it for now but if i get this done will be looking for addons in the future. pm me your offers thanks Steven
-
Ok i was about to post this and i seen someone selling there game and it was like what i wanted but its been sold now :( Ok what iam looking for is instead of a leveling system i would like it to be respect This other game i play called the crims when you start out you have 5 respect and every crime you do gives you money which also gives you respect so the more money you have the more respect just wondering how much this would cost? Budget is not much - $10-$30 thanks steve
-
i had a problem like this when i was using firefox when i would do a crime it would do it 2 times try it out on different browsers
-
Ok i have tested this out and found couple problems 1. Streets.php - typos (easy fix) While traveling, you can find crystals, cash, or even gain experience! / You can travel 249 more times today! 2. wrong function info change case 'walk': do__walk(); break; to case 'walk': do_streets_walk(); break; thanks for the mod and nice work
-
Cars Mod || Coming Soon || Mccodes V2
Newbie replied to Damagedcity.com's topic in Requests & In Production
how will people be able to view there cars ? here is a few ideas which could make your mod better add car images add a shop that sells cars and you can sell your cars to -
how would u set it up in the crons tab in cpanel ? if you put it out of the wwwroot
-
anyone know how to fix this 89.9082568807% to 89% its messing up my layout with all the extra % thanks
-
Does anyone know best way to store crons i have tried something like this crons/are/off/limits but the crons are not working like that any help would be appreciated Thanks
-
i no longer need. You can close this thanks
-
I was wondering how much it will cost to get a header and login coded. I already have the css file and the images just dont know how to add it to my header file
-
[MCcode v2] Advanced spying script [$10 USD]
Newbie replied to radio_active's topic in Paid Modifications
nice might get this when i get spare $10 i have a spy mod but it doesn't fail always gives you the info plus you can go into - money as well with the one i use -
is it $55 for the gangsters legend one?
-
not had much time to myself recently but i tried out your code today and it shows that the fifty.php is working fine until a user bets its not inserting the bet into the database i have looked at the op post on cronwerks forum and there is no sql for second i tried to add it manually and still no success op here http://www.cronwerks.com/forum/free-user-created-mccode-mccodes-mods/5050-game-for-redux/ this is what i used ALTER TABLE `users` ADD `second` INT( 11 ) NOT NULL DEFAULT '0' thanks
-
thanks that gave a new error but i did this and it fixed it <?php include_once('globals.php'); $name = 'crystals'; //Name it points or crystals? if(isset($_POST['match']) && is_numeric($_POST['match'])) { $q = $db->query("SELECT * FROM fifty WHERE bet_id = {$_POST['match']}"); $r = $db->fetch_row($q); $win = floor($r['wager']*(1.8)); if($ir['second'] < $r['wager']) {exit('You are trying to bet more than you have.'.$h->endpage());} if($ir['userid'] == $r['bettor']) {exit('You cannot match your own bet\s.'.$h->endpage());} $db->query('UPDATE `users` SET `second` = `second` - '.$r['wager'].' WHERE `userid` = '.$ir['userid']); if(mt_rand(0,1)) {// either word's. if true or false $db->query('UPDATE `users` SET `second` = `second` + '.$win.' WHERE `userid` = '.$r['bettor']); event_add($r['bettor'], 'You won your 50/50 bet of '.number_format($r['wager']).' '.$name.' and earned '.floor($r['wager'] * 1.8).' '.$name.'!'); event_add($ir['userid'], 'You lost your 50/50 bet of '.number_format($r['wager']).' points.'); } else { $db->query('UPDATE `users` SET `second` = `second` + '.$win.' WHERE `userid` = '.$ir['userid']); event_add($ir['userid'], 'You won your 50/50 bet of '.number_format($r['wager']).' '.$name.' and earned '.floor($r['wager'] * 1.8).' '.$name.'!'); event_add($r['bettor'], 'You lost your 50/50 bet of '.number_format($r['wager']).' points.'); } $db->query('DELETE FROM `fifty` WHERE `bet_id` = '.$r['bet']); } if(isset($_POST['crystals']) && is_numeric($_POST['crystals'])){ if($_POST['crystals'] < 10) {exit('You are not betting enough.'.$h->endpage());} if($_POST['crystals'] > 5000) {exit('You are trying to bet too much.'.$h->endpage());} if($ir['second'] < $_POST['crystals']) {exit('You are trying to met more than you have.'.$h->endpage());} $db->query('UPDATE `users` SET `second` = (`second` - '.$_POST['crystals'].') WHERE `userid` = '.$ir['userid']); $db->query('INSERT INTO `fifty` VALUES(NULL, '.$ir['userid'].', '.intval($_POST['crystals']).' WHERE `userid` = '.$ir['userid']); } echo '<h2>50/50 '.ucfirst($name).' Game</h2>'; echo '<p>The rules are simple. 2 players wager the same bet, the winner gets 90% of the pot. The house keeps 10%</p>'; echo '<p>The maximum bet is 5000 points but you may wager more than once.</p>'; echo '<p> <form method="post" action=""> <input type="text" name="crystals" size="8" maxlength="7" /> '.ucfirst($name).' (10-5000) <input type="submit" name="bet" value="Place Bet" /> </form> </p> <h3>Awaiting Bets</h3> <p> <table width="90%"> <tr> <th><strong>Mobster</strong></td> <th><strong>Points</strong></td> <th><strong>Bet Age</strong></td> <th align="center"><strong>Bet</strong></td> </tr>'; $q = $db->query('SELECT `f`.`wager`, `f`.`bet_time`, `f`.`bet_id`, `u`.`username` FROM `fifty` `f` LEFT JOIN `users` `u` ON `f`.`bettor` = `u`.`userid` ORDER BY `bet_id` ASC'); while($r = mysql_fetch_assoc($q)) { echo ' <tr> <td>'.$r['username'].'</td> <td>'.$r['wager'].'</td> <td>'.DateTime_Parse($r['bet_time']).'</td> <td><form method="post"><input type="hidden" name="match" value="'.$r['bet_id'].'" /><input type="submit" value="Match Bet"></form></td> </tr> </table> </p>'; } ?> but now it comes up You are trying to met more than you have. when you bet anything over 10 edit: when i try to add a bet manualy through the database i get this error aswell Fatal error: Call to undefined function datetime_parse() in /home/mobst996/public_html/mobs9/fifty.php on line 59
-
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobst996/public_html/mobs9/fifty.php on line 53
-
is this right? ---> /*$hq= $db->query ("SELECT * FROM houses WHERE (`hWILL` >".$ir['maxwill'].") ORDER BY `hWILL` ASC"); while ($r=$db->fetch_row($hq)) {*/ <--------- it workd once i removed the span but this querry is gray because of the /* */ it works like this
-
seems like the host i was with was blocking errors Parse error: syntax error, unexpected ';' in /home/mobst996/public_html/fifty.php on line 33
-
One of my testers just made it clear to me that its easy to make money off hi_low so basicly the only thing i can think of to stop this is put a limit on it like luckyboxes i added the table into users i called it hi/low_opened i added this to hi_low.php if($ir['hi/low_opened'] >= 5) { print "Sorry, you have already played Hi or Low 5 times today. Come back tomorrow."; $h->endpage(); exit; } also tryied to add this $db->query("UPDATE users SET hi/low_opened=hi/low_opened+1, WHERE userid=$userid"); i have tried to add it multiple places and no joy just comes up query error i have tried it in the winning and the losing any still get error <?php require_once('globals.php'); print " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> High/Low</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br>"; if($ir['hi/low_opened'] >= 5) { print "Sorry, you have already played Hi or Low 5 times today. Come back tomorrow."; $h->endpage(); exit; } // Below = The Monk's Code // $POST['bet'] = isset($_POST['bet']) && is_numeric($_POST['bet']) ? abs((int) $_POST['bet']) : false; $POST['oldnum'] = isset($_POST['oldnum']) && is_numeric($_POST['oldnum']) ? abs((int) $_POST['oldnum']) : false; $_POST['choice'] = mysql_real_escape_string(strip_tags($_POST['choice'])); if ($_POST['bet'] && !$_POST['choice']) // Player entered bet but hasn't chosen high/low yet { if (!in_array($_POST['bet'], array('500', '1000', '5000', '10000'))) { echo 'The bet you selected is not available'; $h->endpage(); } $bet =$_POST['bet']; if($bet > $ir['money']) { echo '<center>Not enough money!</center>'; $h->endpage(); exit; } $num = number_format(rand(1,10)); echo '<center>The number is '.$num.'. Will the next number be higher or lower than '.$num.'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$num.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$num.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } else if ($_POST['choice'] && $_POST['oldnum'] && $_POST['bet']) // Player chose high/low { $newnum = number_format(rand(1,10)); $oldnum = $_POST['oldnum']; $guess = $_POST['choice']; $bet = $_POST['bet']; if($newnum < $oldnum) { $lala = 'low'; } else if($newnum > $oldnum) { $lala = 'high'; } else if($newnum === $oldnum) { $lala = $guess; } if($lala !== $guess) { $result = 2; } else if($lala === $guess) { $result = 1; } if(!$result) { die("Error!"); } // No result was generated $db->query("UPDATE `users` SET `money`=`money`-".$bet." WHERE (`userid`=".$userid.")"); // Take away bet if($result === 1) // Player won { $prize=$bet * 2; // Prize money for winning echo '<center>Congratulations! You won your bet of \$'.$bet.' '; $db->query("UPDATE `users` SET `money`=`money`+".$prize." WHERE (`userid`=".$userid.")"); echo 'You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } else if($result === 2) // Player lost { echo '<center>Sorry you lost your bet of \$'.number_format($bet).' You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } } else { // Default display echo '<center>Welcome to the High/Low casino! <form action="high_low.php" method="post"> Select your bet: <select type="dropdown" name="bet"> <option value="500">$500</option> <option value="1000">$1000</option> <option value="5000">$5000</option> <option value="10000">$10000</option> </select> <input type="submit" value="Start Game!"> </form> </center>'; } // End Of The Monk's Code // $h->endpage(); ?>
-
nope :( just get a blank white screen when i use this
-
still didnt work and i dunno quite what you mean by if(isset($_POST['cryatals']) && is_numeric($_POST['crystals'])){ which is looking for a field with the name 'crystals' to post value. do you mean its looking outside of users? because thats where crystals is
-
none of the above work still not sending a gang even saying failed or success could it be that im putting it in wrong place ? <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME >0"); $q=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangCRIME > 0 AND g.gangCHOURS = 0"); while($r=$db->fetch_row($q)) { $suc=rand(0,1); if($suc) { $log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT']; $muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY'])); $resp=(int) (rand($r['ocMINRESPECT'],$r['ocMAXRESPECT'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangRESPECT=gangRESPECT+$resp,gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO gangevents VALUES('',{$gangdata['gangID']},unix_timestamp(),'Your Gang\'s Organised Crime Succeeded. Go <a href=\'oclog.php?ID=$i\'>here</a> to view the details')"); } } else { $log=$r['ocSTARTTEXT'].$r['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO gangevents VALUES('',{$gangdata['gangID']},unix_timestamp(),'Your Gang\'s Organised Crime Succeeded. Go <a href=\'oclog.php?ID=$i\'>here</a> to view the details')"); } } } if(date('G')==17) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET u.money=u.money+jr.jrPAY, u.exp=u.exp+(jr.jrPAY/20) WHERE u.job > 0 AND u.jobrank > 0"); $db->query("UPDATE userstats us LEFT JOIN users u ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET us.strength=(us.strength+1)+jr.jrSTRG-1,us.labour=(us.labour+1)+jr.jrLABOURG-1,us.IQ=(us.IQ+1)+jr.jrIQG-1 WHERE u.job > 0 AND u.jobrank > 0"); } if($set['validate_period'] == 60 && $set['validate_on']) { $db->query("UPDATE users SET verified=0"); } ?>