
Elitemobb
Members-
Posts
7 -
Joined
-
Last visited
Never
Elitemobb's Achievements
Newbie (1/14)
0
Reputation
-
Hey guys im running mccode and having issues with my cron_minute file. If i run it manually it works as it should. However when i let cronjob run it.. it seems that it runs when it wants. I have logged the output via email and it returns curl(6) Cant resolve host at http://domain.com/cronfile/code. (obviously not the actual command string but you get the point.) it seems as though the cron minute is the only one this is happening with. And it does at times work. But if your in the hospital or jail for 5 minutes you could spend up to 30+ in there before released. Any suggestions?
-
[mccode v2] My Orginization & My Production
Elitemobb replied to ishmell's topic in Free Modifications
Re: My Orginization & My Production (V2) Not sure what that update was supposed to contain but i have fixed the issue. For those that are interested or having issues here is the updated code. <? //This script was made by illes ignath (a.k.a ishmell) //Please do not delete this credit. //Feel free to edit the script however you may please. //This is just version 1.8 and ill be sure to add more features to it over time. //Thats all for now, I hope you enjoy it. include "globals.php"; global $db,$c,$ir, $set; ?> <h2>Your Orginization's Production/Business</h2> </p> <div align="center"> <form action="production.php" method="post"> <? if ($ir['tshapiness'] <= 0) { print "Sorry, your troops hapiness is to low to send them out."; $h->endpage(); exit; } ?> [b]Production/Business:[/b] <table width="261" border="1"> <tr> <td width="123">[b]Protection Agency[/b]</td> <td width="123"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td width="122">The protection agency will allow you to send out your body guards and offer punks protection for a fee. Its a great way to make money.</td> </tr> <tr> <td>[b]Bodyguards: <? print "{$ir['bodyguards']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='bodygs' value='0'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='bodyprotect' value='Begin Protection' type='submit' />"; ?></div></td> </tr> </table> <? //for bodyguards $bodygs = $_POST['bodygs']; $bodyreward = $bodygs*rand(8000,23000); $bodyrand = rand(0,$bodygs); $bodyreward2 = $bodygs*rand(13000,28000); $bodyhapi = rand(0,3); if ($ir['tsbalance'] > 3 && $ir['tshapiness'] >= 5) { if ($ir['bodyguards'] < $bodygs) { print "Sorry, you dont have that many bodyguards."; $h->endpage(); exit; } else { if ($bodygs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bodygs >= 1) { $db->query("UPDATE users SET money=money+$bodyreward WHERE userid=$userid"); $db->query("UPDATE users SET bodyguards=bodyguards-$bodyrand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$bodyhapi WHERE userid=$userid>0"); print "You sent out your bodyguards and made yourself $$bodyreward2. Unfortunately $bodyrand bodygaurds never made it back alive."; } } } } else { if ($ir['bodyguards'] < $bodygs) { print "Sorry, you dont have that many bodyguards."; $h->endpage(); exit; } else { if ($bodygs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bodygs >= 1) { $db->query("UPDATE users SET money=money+$bodyreward WHERE userid=$userid"); $db->query("UPDATE users SET bodyguards=bodyguards-$bodyrand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$bodyhapi WHERE userid=$userid>0"); print "You sent out your bodyguards and made yourself $$bodyreward. Unfortunately $bodyrand bodygaurds never made it back alive."; } } } } ?> <table width="261" border="1"> <tr> <td width="148">[b]Smuggling Narcotics[/b]</td> <td width="97"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>Narcotics is huge in the area so smuggling them can get you really rich. Just send out some hustlers and they will take care of it for you.</td> </tr> <tr> <td>[b]Hustlers: <? print "{$ir['hustlers']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='hustlegs' value='0'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='hustnar' value='Begin Smuggling' type='submit' />"; ?></div></td> </tr> </table> <? //for hustlers $hustlegs = $_POST['hustlegs']; $hustlereward = $hustlegs*rand(0,5000); $hustlereward2 = $hustlegs*rand(3000,11000); $hustlerand = rand(0,$hustlegs); $hustlehapi = rand(0,3); if ($ir['tsbalance'] > 3 && $ir['tshapiness'] >= 5) { if ($ir['hustlers'] < $hustlegs) { print "Sorry, you dont have that many hustlers."; $h->endpage(); exit; } else { if ($hustlegs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($hustlegs >= 1) { $db->query("UPDATE users SET money=money+$hustlereward WHERE userid=$userid"); $db->query("UPDATE users SET hustlers=hustlers-$hustlerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$hustlehapi WHERE userid=$userid=0"); print "You sent out your hustlers and made yourself $$hustlereward2. Unfortunately $hustlerand hustlers never made it back alive."; } } } } else { if ($ir['hustlers'] < $hustlegs) { print "Sorry, you dont have that many hustlers."; $h->endpage(); exit; } else { if ($hustlegs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($hustlegs >= 1) { $db->query("UPDATE users SET money=money+$hustlereward WHERE userid=$userid"); $db->query("UPDATE users SET hustlers=hustlers-$hustlerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$hustlehapi WHERE userid=$userid"); print "You sent out your hustlers and made yourself $$hustlereward. Unfortunately $hustlerand hustlers never made it back alive."; } } } }?> <table width="261" border="1"> <tr> <td width="112">[b]Loan Shark[/b]</td> <td width="133"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>People these days are always in need of some extra cash. When the banks cant provide they will come to you. So send out some bootleggers and make some nice money.</td> </tr> <tr> <td>[b]Bootleggers: <? print "{$ir['bootleggers']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='bootlegs' value='0'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='bootnar' value='Begin Loanshark' type='submit' />"; ?></div></td> </tr> </table> <? //for bootleggers $bootlegs = $_POST['bootlegs']; $bootlereward = $bootlegs*rand(3000,10000); $bootlereward2 = $bootlegs*rand(8000,15000); $bootlerand = rand(0,$bootlegs); $bootlehapi = rand(0,3); if ($ir['tsbalance'] > 3 && $ir['tshapiness'] >= 5) { if ($ir['bootleggers'] < $bootlegs) { print "Sorry, you dont have that many bootleggers."; $h->endpage(); exit; } else { if ($bootlegs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bootlegs >= 1) { $db->query("UPDATE users SET money=money+$bootlereward WHERE userid=$userid"); $db->query("UPDATE users SET bootleggers=bootleggers-$bootlerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$bootlehapi WHERE userid=$userid=0"); print "You sent out your bootleggers and made yourself $$bootlereward2. Unfortunately $bootlerand bootleggers never made it back alive."; } } } } else { if ($ir['bootleggers'] < $bootlegs) { print "Sorry, you dont have that many bootleggers."; $h->endpage(); exit; } else { if (bootlegs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bootlegs >= 1) { $db->query("UPDATE users SET money=money+$bootlereward WHERE userid=$userid"); $db->query("UPDATE users SET bootleggers=bootleggers-$bootlerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$bootlehapi WHERE userid=$userid"); print "You sent out your bootleggers and made yourself $$bootlereward. Unfortunately $bootlerand bootleggers never made it back alive."; } } } } ?> <table width="261" border="1"> <tr> <td width="110">[b]Pimping[/b]</td> <td width="135"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>There are some needy men out there always look for some pussy. Your one of the top pimps around so start sending your whores out there to do what they do best.</td> </tr> <tr> <td>[b]Whores: <? print "{$ir['whores']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='whoregs'value='0'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='whonar' value='Begin Pimping' type='submit' />"; ?></div></td> </tr> </table> <? //for whores $whoregs = $_POST['whoregs']; $whorereward = $whoregs*rand(0,1000); $whorereward2 = $whoregs*rand(0,5000); $whorerand = rand(0,$whoregs); $whorehapi = rand(0,3); if ($ir['tsbalance'] > 3 && $ir['tshapiness'] >= 5) { if ($ir['whores'] < $whoregs) { print "Sorry, you dont have that many whores."; $h->endpage(); exit; } else { if ($whoregs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($whoregs >= 1) { $db->query("UPDATE users SET money=money+$whorereward WHERE userid=$userid"); $db->query("UPDATE users SET whores=whores-$whorerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$whorehapi WHERE userid=$userid=0"); print "You sent out your whores and made yourself $$whorereward2. Unfortunately $whorerand whores never made it back alive."; } } } } else { if ($ir['whores'] < $whoregs) { print "Sorry, you dont have that many whores."; $h->endpage(); exit; } else { if ($whoregs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($whoregs >= 1) { $db->query("UPDATE users SET money=money+$whorereward WHERE userid=$userid"); $db->query("UPDATE users SET whores=whores-$whorerand WHERE userid=$userid"); $db->query("UPDATE users SET tsexp=tsexp+2 WHERE userid=$userid"); $db->query("UPDATE users SET tshapiness=tshapiness-$whorehapi WHERE userid=$userid"); print "You sent out your whores and made yourself $$whorereward. Unfortunately $whorerand whores never made it back alive."; } } } } ?> -
[mccode v2] My Orginization & My Production
Elitemobb replied to ishmell's topic in Free Modifications
Re: My Orginization & My Production (V2) Thanks for the update.. but when i go to production.. if i only fill in one field and leave the others blank it returns an SQL error >Warning: rand() expects parameter 2 to be long, string given in /home/xxxxxx/public_html/xxxxxxx/production.php on line 136. The fix is a mere default value (0) to be entered into the form fields to start with... At least thats what fixed it for me.. not sure if anyone else has this issue. -
[mccode v2] My Orginization & My Production
Elitemobb replied to ishmell's topic in Free Modifications
Re: My Orginization & My Production (V2) Am i missing something or did you not add the new SQL tables with the new update? Also in the files its looking or redirecting to ts.php is this a missing file? -
Re: [mccode] item images Sweet... Thanks illusions for the help.. :D +1 to you
-
Re: [mccode] item images ok.. i did as you said and changed $r to $i... and the outcome... there wasnt one. However when i removed the image tag and echo'd the command it did show the link to the image in the description area as its supposed too.. I did that just to see if i was getting anything from the database. So that tells me i have an issue with my image code in the file. <? echo $r['itmname']; ?></td><td>[img=itmpics/{$i[]</td><td><? echo $buyprice; ?></td><td><? echo $sellprice; ?></td><td><form action='itembuy.php?ID=<? echo $r['itmid']; ?>' name="shopbuy" method='post'> Qty: <input type='text' name='qty' value='1' onkeyup="tot(<? echo $r['itmid']; ?>,<? echo $r['itmbuyprice']; ?>,this.value);" onfocus="clearText(this);" onblur="returnText(this);" /><input type='submit' value='Buy' /></form><div id="res<? echo $r['itmid']; ?>" align="center"></div></td><td> That is what im using per the instructions. If im doing something wrong.. please educate me :D Thanks
-
Re: [mccode] item images I for some reason am not getting any output. I have it uploading images.. and i have the image path correct in the items table in the database... but when i view the shop or inventory its just a blank area. No image.. no description just blank. any suggestions?