
Rdogg
Members-
Posts
46 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Rdogg
-
no i didnt lol ... please know what ur talking about before saying anything..
-
has alot of mccodes file? it has none just the same name..
-
it is my own engine... has nothing to do mccodes , it may look like it bu t it isnt
-
sorry guys, try now username: Test123 pass: test123
-
lol o yeh http://damafia.heyup.me
-
i have no examples(kind of) you can visit damafia.heyup.com game im developing , engine made by me user:demo pass:demo1
-
I Will Code Simple Mods For You Guys , Cheap $$ post what you want coded here along with a price offer and leave your msn :) i really need the $$ Paypal email: [email protected]
-
Re: Building Mods - now for sale! This mod SUCKS, ass -mat- :D
-
Re: grapics need will pay 15 pounds heres an example of my designs (i charge 5000 an hour)
-
i just added the drug mod [ i dont know which one loool] and i get this error QUERY ERROR: Unknown column 'df_dayleft' in 'field list' Query was INSERT INTO `drug_farm` (`df_id`, `df_user`, `df_drug`, `df_dayleft`) VALUES ('NULL', '1', '1', ''); this is my query for that bit: $db->query("INSERT INTO `drug_farm` (`df_id`, `df_user`, `df_drug`, `df_dayleft`) VALUES ('NULL', '$userid', '$_POST[drug]', '$r[drug_growdays]');"); please help
-
i installed the slots from nyna and it gives me a error Warning: Illegal offset type in /home/rdogg/public_html/slots.php on line 130 my slots.php <?php include("./globals.php"); global $db, $h, $ir, $userid, $c; $am2bet = 100; // how much it costs to bet for the following if statement. if ($ir['money'] < $am2bet) { echo 'You don\' have enough money to play >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $am2bet = 100; // how much it costs to bet for the following if statement. if ($ir['money'] < $am2bet) { echo 'You don\' have enough money to play >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $tokens = null; $sql = sprintf("SELECT `Tokens` FROM `mod_slots` WHERE (`User` = %d)", $userid); $rs = $db->query($sql); if ($db->num_rows($rs)) { $row = $db->fetch_row($rs); $tokens = $row['Tokens']; } if (is_null($tokens)) { $tokens = 75; $sql = sprintf("INSERT INTO `mod_slots` (`User`, `Tokens`) VALUES (%d, %d)", $userid, $tokens); $db->query($sql); } $wheels = array ( array // Money = $1,116,360 ( "coopoopclgobocgppbpssppsoccbobbobbpspsgbooloosspc", "olglpgclcbslsossscbgsopgglpblslsssplbpbsoloslgpgp", "ggobpcoobcpcbgpcbcplbbbgsbpgcslogcbcsbbpcslsbbcpc", ), array // Money = $1,139,490 ( "gglboosppplcgpobspcollsolpgossolsspgoossgbbossbpg", "ocsoscsppbobglpgpbbolboogcgcgosocbccpgpsbpssscbcc", "pbocppolcsglpllbccslggsgocccocgoslpbpbpsoopgollsp", ), array // Money = $1,168,030 ( "gogppsospgggsppsocglblbpcpbpccbsopbclccscbboppgso", "slgllbogbposbsoososscsogoooplgpolssblbocbopglsopp", "lclglcolclplcpgsbobpcpgcbocogsopsgggsosocoocpsbsb", ), array // Money = $1,113,230 ( "bpcsspoglpcollggppopolppbopbspbcoslccccllposbsgpp", "lpgcgcsscssososgosbcloopplsbglclggssbsoccobbllpcl", "gsocbgpsgpopoooblbcslopgpsbbpggopsbpslobplbpgoops", ), array // Money = $1,006,150 ( "lcbblslpggppboobscslllollgbloooblcsgpslsoopgpssso", "spcobpppgplposbcpppcplcpppocgoslcsolsssslgpplcblp", "bsslplgggpoocppcgcbblglogbpsppopbppocbpsobloslbbo", ), array // Money = $1,175,040 ( "lpopolollgglglsogpblglpsogsolppolpoppbcgscbooolsl", "clpssgblsplcbopgcpolppobssoclogsgbgpscpsogcocpgsc", "oppogcspplgpoogbbggcpccpccooblcbscobpsbgoppssbbps", ), array // Money = $1,138,370 ( "plgopssgsbclollblpslbspolpsscspcpbpslbglbssccogog", "ggpscbgcgssoopcpgscssslcllcsocppcppgpoosppgllgpps", "pgslgopsbllcolpgslooopgplcsocblgsgcssgblcsclgogpg", ), array // Money = $1,164,030 ( "pbgpgclgogbllslplsbpscpobogcsbglslgssllgspbbslbog", "ocsllcccgocobplpocpcloglocopoogpsolpgolpsglssgcpg", "glpbssopcbbogppspgbbpplbclboglocbppcpsopopbgggopo", ), array // Money = $1,096,070 ( "slosplsbsglsgssggspllsccsclcppcpollsloogplgpbgllb", "ggosslccgbopcbboooosogsolocpgsbbclgbogbpbsoppboop", "bplboosbclgopgocgspollsobobsbcgsboglobbbppbbpsobb", ), array // Money = $1,145,150 ( "lpospocpspcpclcclbcppgllgbpslspcpgooplolsoogsbslb", "psslsssgbcosblsbggopbslcgpooppbblocbbocggbslspbgg", "pogslcgcggsoppcblcpblloclcsblcogppooggssppcgsospp", ), ); $images = array ( 'b' => "bananas", 'c' => "cherries", 'g' => "grapes", 'l' => "lemon", 'o' => "orange", 'p' => "pineapple", 's' => "strawberry", ); if (!isset($_SESSION['wheel'])) $_SESSION['wheel'] = mt_rand(0, 10); echo "<style type='text/css'>"; echo "table.ni { width:95%;border-collapse:collapse; }"; echo "table.ni th { border:solid 1px #999;background:#F6F6F6;padding:3px; }"; echo "table.ni td { border:solid 1px #999;padding:3px; }"; echo "</style>"; echo "<h3>Slots</h3>"; echo "<table cellpadding='0' cellspacing='0' class='ni'>"; echo "<tr>"; echo "<th class='sub'>Fruit Machine</th>"; echo "<th class='sub' style='width:13em;'>All 3 The Same</th>"; echo "<th class='sub' style='width:13em;'>First 2 The Same</th>"; echo "</tr>"; echo "<tr>"; echo "<td style='vertical-align:top;text-align:center;'>"; $wheel = $wheels[$_SESSION['wheel']]; $index1 = mt_rand(1, 49) - 1; $index2 = mt_rand(1, 49) - 1; $index3 = mt_rand(1, 49) - 1; $wheel1 = $wheel[0] . $wheel[0] . $wheel[0]; $wheel2 = $wheel[1] . $wheel[1] . $wheel[1]; $wheel3 = $wheel[2] . $wheel[2] . $wheel[2]; $index1 += 49; $index2 += 49; $index3 += 49; echo "<table cellpadding='0' cellspacing='0' style='border-collapse:collapse;margin:100px auto;background:white;'>"; echo "<tr style='background:#DDD;'>"; echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel1[$index1 - 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel2[$index2 - 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel3[$index3 - 1]]); echo "</tr>"; echo "<tr>"; echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel1[$index1]]); echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel2[$index2]]); echo sprintf("<td>[img=slots/%s.png]</td>", $images[$wheel3[$index3]]); echo "</tr>"; echo "<tr style='background:#DDD;'>"; echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel1[$index1 + 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel2[$index2 + 1]]); echo sprintf("<td>[img=slots/%s_gray.png]</td>", $images[$wheel3[$index3 + 1]]); echo "</tr>"; echo "</table>"; if ($tokens == 0) { echo "You have no more casino tokens "; echo "You will get another 75 or so at midnight game time "; } else if ($ir['money'] <= 0) { echo "You don't have any money left! "; echo "Better do some more work! "; } else { echo "<form action='slots.php' method='post'>"; echo "<input type='hidden' name='slots' value='1234' />"; echo "<input type='submit' value='Play $100' />"; echo "</form>"; } echo " "; if (isset($_POST['slots']) && is_string($_POST['slots']) && ($_POST['slots'] === "1234") and $ir['money'] >= 100){ $win = 0; $bet = 100; $letter1 = $wheel1[$index1]; $letter2 = $wheel2[$index2]; $letter3 = $wheel3[$index3]; if (($letter1 == $letter2) && ($letter2 == $letter3)) { switch ($letter1) { case "b": $win = 700; break; case "c": $win = 600; break; case "g": $win = 500; break; case "l": $win = 400; break; case "o": $win = 300; break; case "p": $win = 200; break; case "s": $win = 100; break; } } else if ($letter1 == $letter2) { switch ($letter1) { case "b": $win = 70; break; case "c": $win = 60; break; case "g": $win = 50; break; case "l": $win = 40; break; case "o": $win = 30; break; case "p": $win = 20; break; case "s": $win = 100; break; } } if ($win) echo sprintf("<span style='color:#070;'>You win $%d</span>", $win); else echo "<span style='color:#C00;'>You lose</span>"; $sql = sprintf("UPDATE `users` SET `money` = `money` + %d WHERE (`userid` = %d)", $win - $bet, $userid); $db->query($sql); $sql = sprintf("UPDATE `mod_slots` SET `Tokens` = `Tokens` - 1 WHERE ((`User` = %d) AND (`Tokens` > 0))", $userid); $db->query($sql); } echo "</td>"; echo "<td style='vertical-align:top;text-align:center;'>"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo " $700 "; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo " $600 "; echo "[img=slots/grapes.png]"; echo "[img=slots/grapes.png]"; echo "[img=slots/grapes.png]"; echo " $500 "; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo " $400 "; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo " $300 "; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo " $200 "; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo " $100 "; echo "</td>"; echo "<td style='vertical-align:top;text-align:center;'>"; echo "[img=slots/bananas.png]"; echo "[img=slots/bananas.png]"; echo " $70 "; echo "[img=slots/cherries.png]"; echo "[img=slots/cherries.png]"; echo " $60 "; echo "[img=slots/grapes.png]"; echo "[img=slots/grapes.png]"; echo " $50 "; echo "[img=slots/lemon.png]"; echo "[img=slots/lemon.png]"; echo " $40 "; echo "[img=slots/orange.png]"; echo "[img=slots/orange.png]"; echo " $30 "; echo "[img=slots/pineapple.png]"; echo "[img=slots/pineapple.png]"; echo " $20 "; echo "[img=slots/strawberry.png]"; echo "[img=slots/strawberry.png]"; echo " $100 "; echo "</td>"; echo "</tr>"; echo "</table>"; echo "<p style='color:#CCC;'>An open-source extension from [url='http://nyna.co.uk/']Nyna[/url]</p>"; $h->endpage(); ?>
-
Re: [need help]car mod could u help me add it? :wink:
-
Re: [need help]car mod no other files have it
-
Re: [need help]car mod line 1 to 15 <?php include "globals.php"; global $h; print "<h3>Tuning Shop</h3><hr /> > [url='garage.php']Back To Garage[/url]<hr />"; if(!$_GET['id']) { die("Invalid Usage"); } $q=$db->query("SELECT cp.*,ct.* FROM cars_playercars cp LEFT JOIN cars_types ct ON ct.carID=cp.cpcCAR WHERE cp.cpcID={$_GET['id']} AND cp.cpcPLAYER=$userid"); if($db->num_rows($q) == 0) { die("Invalid Car"); } $r=$db->fetch_row($q); $cost['acc']=$r['carACC']*power($r['cpcACCLV']+1,4)*($r['cpcACCLV']*$r['carACC']*10); $cost['han']=$r['carHAN']*power($r['cpcHANLV']+1,4)*($r['cpcHANLV']*$r['carHAN']*10); $cost['spd']=$r['carSPD']*power($r['cpcSPDLV']+1,4)*($r['cpcSPDLV']*$r['carSPD']*10); $cost['shd']=$r['carSHD']*power($r['cpcSHDLV']+1,4)*($r['cpcSHDLV']*$r['carSHD']*10); if($_GET['buy']) {
-
Re: [need help]car mod nope
-
could u please help me? i installed car mod and on tune.php on line ten this is the code $cost['acc']=$r['carACC']*power($r['cpcACCLV']+1,4)*($r['cpcACCLV']*$r['carACC']*10); and i get this error. Fatal error: Call to undefined function power() in /home/rdogg/public_html/tune.php on line 1
-
hello i get this error in index.php Parse error: syntax error, unexpected '>' in /home/rdogg/public_html/index.php on line 11 the line 11: print "[b]Property:[/b] {$ir['hNAME']} [img=hsepics/{$ir[]</center>"; could someone help me =] please
-
Re: [item Needed for crime] still not working =[
-
Re: [staff PANEL , JobRanks] thanks man
-
when i try to update a job rank it says this: 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 'jrID=8' at line 1 Query was UPDATE jobranks SET jrNAME='Clerk', jrJOB = 4, jrPAY= 200, jrIQG=3, jrLABOURG=3, jrSTRG=2, jrIQN=2, jrLABOURN=2, jrSTRN=2WHERE jrID=8 and my staff_jobs.php <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains shop stuffs switch($_GET['action']) { case 'newjob': newjob(); break; case 'jobedit': jobedit(); break; case 'newjobrank': newjobrank(); break; case 'jobrankedit': jobrankedit(); break; case 'jobdele': jobdele(); break; case 'jobrankdele': jobrankdele(); break; default: print "Error: This script requires an action."; break; } function newjob() { global $db,$ir,$userid; if ( $_POST['jNAME']) { $db->query("INSERT INTO jobs VALUES('','{$_POST['jNAME']}', 0, '{$_POST['jDESC']}', '{$_POST['jOWNER']}')"); $i=$db->insert_id(); $db->query("INSERT INTO jobranks VALUES('', '{$_POST['jrNAME']}', $i, {$_POST['jrPAY']}, {$_POST['jrIQG']}, {$_POST['jrLABOURG']}, {$_POST['jrSTRG']}, {$_POST['jrIQN']}, {$_POST['jrLABOURN']}, {$_POST['jrSTRN']})"); $j=$db->insert_id(); $db->query("UPDATE jobs SET jFIRST=$j WHERE jID=$i"); print "Job created! "; } else { print <<<EOF <form action='staff_jobs.php?action=newjob' method='post'> [b]Job Name:[/b] <input type='text' name='jNAME' /> [b]Job Description:[/b] <input type='text' name='jDESC' /> [b]Job Owner:[/b] <input type='text' name='jOWNER' /> <hr>[b]First Job Rank:[/b] [b]Rank Name:[/b] <input type='text' name='jrNAME' /> [b]Pays:[/b] <input type='text' name='jrPAY' /> [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=3 maxlength=3> Lab: <input type='text' name='jrLABOURG' size=3 maxlength=3> IQ: <input type='text' name='jrIQG' size=3 maxlength=3> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=5 maxlength=5> Lab: <input type='text' name='jrLABOURN' size=5 maxlength=5> IQ: <input type='text' name='jrIQN' size=5 maxlength=5> <input type='submit' value='Create Job' /></form> EOF; } } function jobedit() { global $db,$ir,$userid; if ( $_POST['stage2']) { $db->query("UPDATE jobs SET jNAME='{$_POST['jNAME']}', jDESC='{$_POST['jDESC']}', jOWNER='{$_POST['jOWNER']}', jFIRST={$_POST['jFIRST']} WHERE jID={$_POST['jID']}"); print "Job updated! "; } else if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobs WHERE jID={$_POST['jID']}"); $r=$db->fetch_row($q); print <<<EOF <form action='staff_jobs.php?action=jobedit' method='post'> <input type='hidden' name='stage2' value='1'> <input type='hidden' name='jID' value='{$_POST['jID']}'> [b]Job Name:[/b] <input type='text' name='jNAME' value='{$r['jNAME']}'> [b]Job Description:[/b] <input type='text' name='jDESC' value='{$r['jDESC']}'> [b]Job Owner:[/b] <input type='text' name='jOWNER' value='{$r['jOWNER']}'> [b]First Job Rank:[/b] EOF; print jobrank_dropdown($c,'jFIRST',$r['jFIRST']); print <<<EOF <input type='submit' value='Edit' /> </form> EOF; } else { print <<<EOF <form action='staff_jobs.php?action=jobedit' method='post'> <input type='hidden' name='stage1' value='1'> Select a job to edit. EOF; print job_dropdown($c, 'jID', -1); print <<<EOF <input type='submit' value='Edit Job' /> </form> EOF; } } function newjobrank() { global $db,$ir,$userid; if ( $_POST['jrNAME']) { $db->query("INSERT INTO jobranks VALUES('', '{$_POST['jrNAME']}', {$_POST['jrJOB']}, {$_POST['jrPAY']}, {$_POST['jrIQG']}, {$_POST['jrLABOURG']}, {$_POST['jrSTRG']}, {$_POST['jrIQN']}, {$_POST['jrLABOURN']}, {$_POST['jrSTRN']})"); print "Job rank created! "; } else { print <<<EOF <form action='staff_jobs.php?action=newjobrank' method='post'> [b]Rank Name:[/b] <input type='text' name='jrNAME' /> [b]Pays:[/b] <input type='text' name='jrPAY' /> [b]Job:[/b] EOF; print job_dropdown($c,"jrJOB", -1); print <<<EOF [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=3 maxlength=3> Lab: <input type='text' name='jrLABOURG' size=3 maxlength=3> IQ: <input type='text' name='jrIQG' size=3 maxlength=3> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=5 maxlength=5> Lab: <input type='text' name='jrLABOURN' size=5 maxlength=5> IQ: <input type='text' name='jrIQN' size=5 maxlength=5> <input type='submit' value='Create Job Rank' /></form> EOF; } } function jobrankedit() { global $db,$ir,$userid; if ( $_POST['stage2']) { $db->query("UPDATE jobranks SET jrNAME='{$_POST['jrNAME']}', jrJOB = {$_POST['jrJOB']}, jrPAY= {$_POST['jrPAY']}, jrIQG={$_POST['jrIQG']}, jrLABOURG={$_POST['jrLABOURG']}, jrSTRG={$_POST['jrSTRG']}, jrIQN={$_POST['jrIQN']}, jrLABOURN={$_POST['jrLABOURN']}, jrSTRN={$_POST['jrSTRN']}WHERE jrID={$_POST['jrID']}"); print "Job rank updated! "; } else if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobranks WHERE jrID={$_POST['jrID']}"); $r=$db->fetch_row($q); print <<<EOF <form action='staff_jobs.php?action=jobrankedit' method='post'> <input type='hidden' name='stage2' value='1'> <input type='hidden' name='jrID' value='{$_POST['jrID']}'> [b]Job Rank Name:[/b] <input type='text' name='jrNAME' value='{$r['jrNAME']}'> [b]Job:[/b] EOF; print job_dropdown($c,'jrJOB',$r['jrJOB']); print <<<EOF [b]Pays:[/b] <input type='text' name='jrPAY' value='{$r['jrPAY']}' /> [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=3 maxlength=3 value='{$r['jrSTRG']}'> Lab: <input type='text' name='jrLABOURG' size=3 maxlength=3 value='{$r['jrLABOURG']}'> IQ: <input type='text' name='jrIQG' size=3 maxlength=3 value='{$r['jrIQG']}'> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=5 maxlength=5 value='{$r['jrSTRN']}'> Lab: <input type='text' name='jrLABOURN' size=5 maxlength=5 value='{$r['jrLABOURN']}'> IQ: <input type='text' name='jrIQN' size=5 maxlength=5 value='{$r['jrIQN']}'> [b]Job:[/b] <input type='submit' value='Edit' /> </form> EOF; } else { print <<<EOF <form action='staff_jobs.php?action=jobrankedit' method='post'> <input type='hidden' name='stage1' value='1'> Select a job rank to edit. EOF; print jobrank_dropdown($c, 'jrID', -1); print <<<EOF <input type='submit' value='Edit Job Rank' /> </form> EOF; } } function jobrankdele() { global $db,$ir,$userid; if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobranks WHERE jrID={$_POST['jrID']}"); $jr=$db->fetch_row($q); $_POST['jID']=$jr['jrJOB']; $db->query("DELETE FROM jobranks WHERE jrID={$_POST['jrID']}"); print "Job rank successfully deleted! "; $db->query("UPDATE users u LEFT JOIN jobs j ON u.job=j.jID SET u.jobrank=j.jFIRST WHERE u.job={$_POST['jID']} and u.jobrank={$_POST['jrID']}"); $q=$db->query("SELECT * FROM jobs WHERE jFIRST={$_POST['jrID']}"); if($db->num_rows($q)) { $r=$db->fetch_row($q); print "[b]Warning![/b] The Job {$r['jNAME']} now has no first rank! Please go edit it and include a first rank. "; } } else { print <<<EOF <form action='staff_jobs.php?action=jobrankdele' method='post'> <input type='hidden' name='stage1' value='1'> Select a job rank to delete. EOF; print jobrank_dropdown($c, 'jrID', -1); print <<<EOF <input type='submit' value='Delete Job Rank' /> </form> EOF; } } function jobdele() { global $db,$ir,$userid; if ( $_POST['stage1']) { $db->query("DELETE FROM jobs WHERE jID={$_POST['jID']}"); print "Job rank successfully deleted! "; $db->query("DELETE FROM jobranks WHERE jrJOB={$_POST['jID']}"); print mysql_affected_rows()." job ranks deleted. "; $db->query("UPDATE users SET job=0,jobrank=0 WHERE job={$_POST['jID']}"); } else { print <<<EOF <form action='staff_jobs.php?action=jobdele' method='post'> <input type='hidden' name='stage1' value='1'> Select a job to delete. EOF; print job_dropdown($c, 'jID', -1); print <<<EOF <input type='submit' value='Delete Job' /> </form> EOF; } } function report_clear() { global $db,$db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } $h->endpage(); ?> [/code]
-
Title: DarkCyber Site URL: darkcyber.co.uk Site Description: A wonderful game with a friendly community.. Please Join up! if u got a suggestion plz post it here/there or any feedback.. or anythin
-
i added that mod but on the database the default for crimeITEM is "0" and users dont have the item id "0" in their inventorie how could i make it so if the Crime item = 0 they can do it without it? criminal.php <?php $macropage="criminal.php"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $q2=$db->query("SELECT * FROM crimes ORDER BY crimeBRAVE ASC"); while ($r2=$db->fetch_row($q2)) { $crimes[]=$r2; } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); print "[b]Criminal Centre[/b] <table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Item Needed</th><th>Do</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td colspan='3' class='h'>{$r['cgNAME']}</td></tr>"; foreach($crimes as $v) { $qn=$db->query("SELECT itmname FROM items where itmid={$v['crimeITEM']}"); $n=$db->fetch_row($qn); $name=$n['itmname']; if($v['crimeGROUP'] == $r['cgID']) { print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>$name</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>"; } } } print "</table>"; $h->endpage(); ?> docrime.php <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); $qi=$db->query("SELECT inv_itemid FROM inventory where inv_itemid={$r['crimeITEM']} AND inv_userid=$userid"); $n=$db->fetch_row($qn); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else if($n['inv_itemid'] != $r['crimeITEM']) { print "You do not have the required item needed to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?>
-
Re: Ammo [shop] from 238 to 348 print "<form action='attacklost.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Continue' />"; } } else if ($odata['hp'] < 5) { print "You can only attack those who have health"; $h->endpage(); exit; } else if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) {
-
i get a error on this page: why: this is the error: Parse error: syntax error, unexpected '}' in /home/rdogg/public_html/attack.php on line 241 i tried removing it give me another error attack.php <?php $menuhide=1; $atkpage=1; include "globals.php"; $_GET['ID'] == (int) $_GET['ID']; if(!$_GET['ID']) { print "WTF you doing, bro?"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { print "Only the crazy attack themselves."; $h->endpage(); exit; } else if ($ir['hp'] <= 1) { print "Only the crazy attack when their unconscious. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if ($r['ammo'] >= 1) { print "You Have NO Bullets Go Buy Some From The Ammo Shop [url='index.php']Back[/url]"; $h->endpage(); exit; } else if ($_SESSION['attacklost'] == 1) { print "Only the losers of all their EXP attack when they've already lost. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } //get player data $youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, bad, bad girl. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } if($odata['hp'] == 1) { print "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['hospital']) { print "This player is in hospital. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($ir['hospital']) { print "While in hospital you can't attack. [url='hospital.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['jail']) { print "This player is in jail. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($ir['jail']) { print "While in jail you can't attack. [url='jail.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['travelling']) { print "That player is travelling. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } print "<table width=100%><tr><td colspan=2 align=center>"; if($_SESSION['attacking']==0 && $ir['attacking'] == 0) { if ($youdata['energy'] >= $youdata['maxenergy']/2) $youdata['energy']-= floor($youdata['maxenergy']/2); $me=floor($youdata['maxenergy']/2); $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } else { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; } $_SESSION['attacking']=1; $ir['attacking']=$odata['userid']; $db->query("UPDATE users SET attacking={$ir['attacking']} WHERE userid=$userid"); $_GET['wepid'] = (int) $_GET['wepid']; $_GET['nextstep'] = (int) $_GET['nextstep']; //damage if($_GET['wepid'] != $ir['equip_primary'] && $_GET['wepid'] != $ir['equip_secondary']) { print "Stop trying to abuse a game bug. You can lose all your EXP for that. [url='index.php']> Home[/url]"; $db->query("UPDATE users SET exp=0 where userid=$userid",$c); die(""); } $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); $r1=$db->fetch_row($qo); $mydamage=(int) (($r1['weapon']*$youdata['strength']/($odata['guard']/1.5))*(rand(8000,12000)/10000)); $hitratio=max(10,min(60*$ir['agility']/$odata['agility'],95)); if(rand(1,100) <= $hitratio ) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$odata['equip_armor']} ORDER BY rand()"); if($db->num_rows($q3)) { $mydamage-=$db->fetch_single($q3); } if($mydamage < -100000) { $mydamage=abs($mydamage); } else if($mydamage < 1) { $mydamage=1; } $crit=rand(1,40); if($crit==17) { $mydamage*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $mydamage/=(rand(20,40)/10); } $mydamage=round($mydamage); $odata['hp']-=$mydamage; if($odata['hp']==1) { $odata['hp']=0;$mydamage+=1; } $db->query("UPDATE users SET hp=hp-$mydamage WHERE userid={$_GET['ID']}"); { } print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font> \n"; } if($odata['hp'] <= 0) { $odata['hp']=0; $_SESSION['attackwon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print " [b]What do you want to do with {$odata['username']} now?[/b] <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them' /></form>"; } else { //choose opp gun $eq=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$odata['equip_primary']}, {$odata['equip_secondary']})"); if(mysql_num_rows($eq) == 0) { $wep="Fists"; $dam=(int)((((int) ($odata['strength']/$ir['guard']/100)) +1)*(rand(8000,12000)/10000)); } else { $cnt=0; while($r=$db->fetch_row($eq)) { $enweps[]=$r; $cnt++; } $weptouse=rand(0,$cnt-1); $wep=$enweps[$weptouse]['itmname']; $dam=(int) (($enweps[$weptouse]['weapon']*$odata['strength']/($youdata['guard']/1.5))*(rand(8000,12000)/10000)); } $hitratio=max(10,min(60*$odata['agility']/$ir['agility'],95)); if(rand(1,100) <= $hitratio) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$ir['equip_armor']} ORDER BY rand()"); if($db->num_rows($q3)) { $dam-=$db->fetch_single($q3); } if($dam < -100000) { $dam=abs($dam); } else if($dam < 1) { $dam=1; } $crit=rand(1,40); if($crit==17) { $dam*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $dam/=(rand(20,40)/10); } $dam=round($dam); $youdata['hp']-=$dam; if ($youdata['hp']==1) { $dam+=1; $youdata['hp']=0; } $db->query("UPDATE users SET hp=hp-$dam WHERE userid=$userid"); $ns=$_GET['nextstep']+1; print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']})</font> \n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font> \n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font> \n"; } if($youdata['hp'] <= 0) { $youdata['hp']=0; $_SESSION['attacklost']=1; $db->query("UPDATE users SET hp=0 WHERE userid=$userid"); print "<form action='attacklost.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Continue' />"; } } else if ($odata['hp'] < 5) { print "You can only attack those who have health"; $h->endpage(); exit; } else if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}! What are you smoking today dude!"; $h->endpage(); exit; } else if ($youdata['energy'] < $youdata['maxenergy']/2) { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; } else if ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location!"; $h->endpage(); exit; } else { } print "</td></tr>"; if($youdata['hp'] <= 0 || $odata['hp'] <= 0) { print "</table>"; } else { $vars['hpperc']=round($youdata['hp']/$youdata['maxhp']*100); $vars['hpopp']=100-$vars['hpperc']; $vars2['hpperc']=round($odata['hp']/$odata['maxhp']*100); $vars2['hpopp']=100-$vars2['hpperc']; $mw=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']})"); print "<tr><td colspan=2 align='center'>Attack with: "; if($db->num_rows($mw) > 0) { while($r=$db->fetch_row($mw)) { if(!$_GET['nextstep']) { $ns=1; } else { $ns=$_GET['nextstep']+2; } if($r['itmid']==$ir['equip_primary']) { print "[b]Primary Weapon:[/b] "; } if($r['itmid']==$ir['equip_secondary']) { print "[b]Secondary Weapon:[/b] "; } print "[url='attack.php?nextstep=$ns&ID={$_GET[']{$r['itmname']}[/url] "; } } else { print "You have nothing to fight with."; } print "</table>"; print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>"; } $h->endpage(); ?>
-
is there a free, basic car mod to buy cars , create cars , sell , race?