Jump to content
MakeWebGames

gurpreet

Members
  • Posts

    834
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gurpreet

  1. Re: [showcase] NextDimension I don't know...It's just freaky, all those weird colours with that language.
  2. Re: Jail reason/Crime fail? I got it..Bad problem.   For some reason when I do anything to do with those 2 columns, it auto truncates after i click go...Any ideas how to fix it?
  3. Re: [mccode v2] Ian's Investments +1 working perfectly. Thanks for this
  4. Re: Jail reason/Crime fail? Here's what my bro sent me of what it looks like Name: Id: Level: Time: Reason (0) |< @ ? H ! [2] 5 2 minutes 0 [bust][bail]
  5. Re: Jail reason/Crime fail? default (blank), varchar 255, not null
  6. Re: Jail reason/Crime fail? I made it varchar(255) I did a sql query not a file.
  7. Re: The Destroyers OK STOP THE BEEF PEOPLES!!! Talk about his game: I like the login and register, nice and simple, needs new banner. Go in-game and EWW it looks just like the original Mccodes layout, same colour and everything. Might wanna change that.
  8. Re: [showcase] NextDimension When I look at this game...I get scared :oops:
  9. OK so I have just added jailreason, jail_reason and some others to my mysql DB and my jail reason is still wrong. When I fail the crime it says "0" and the jail reason is "0" without the "s. 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); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave 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']},crimes=crimes+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET cincome=cincome+{$r['crimeSUCCESSMUNY']} 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(); ?>   If any other files are needed, just say so and I'll paste them.
  10. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY Previous works/Examples?
  11. Re: [mccode] Small mod (getting back into coding) 14, and I wasn't an AMAZING coder but I could make a few small mods.
  12. Re: [mccodeV2] Donations page Elite Does this make a DP ITEM or what? How would I give the user the DP after I created it?
  13. Re: Bit of code for staff Apps   Which staffapps mod is this from? There are quite a lot of different versions of them.
  14. Re: [mccode v2] Better Crystal Temple! What is it with people here and Kyle's ass? Is there like a goldmine in there or something?
  15. Re: hour cron negative v2   Do you mean zero it through the cpanel or what?
  16. Re: [V2] Annoucements Upgrade! Just installed it, here's a screenie. Announcements.php: Add announcement in staff panel:
  17. Re: Small mod (getting back into coding)   I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink: that could be read like... "So I'm trying to learn coding, again..." meaning he started to learn and quit ;) but oh well, semantics is not my strong, atleast not in english :D No I mean learn again. I have short term memory loss and well...I just forgot how to code stuff and then I didn't try code until now. Thanks to everyone who is encouraging me, I'll TRY and produce some stuff. Need some ideas though...simple ones, not hard.
  18. Re: hour cron negative v2 My gang cron doesnt change...stuck at -19 hours. Even if I run the cron through the cron_hour?code=blahblah it gives me a blank page, but doesn't change the hours. My cron_hour:   <?php include "config.php"; include "mysql.php"; require "global_func.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 gangCHOURS > 0 AND gangCRIME>0",$c); $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'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,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)) { event_add($rm['userid'],"Your Gang's Organised Crime Succeeded. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } 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)) { event_add($rm['userid'],"Your Gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } } if($set['validate_period'] == 60 && $set['validate_on']) { $db->query("UPDATE users SET verified=0"); } $db->disconnect(); ?>
  19. Re: Small mod (getting back into coding)   Not that experienced yet :) I'll give it a try though. Reading up on a few sites atm.
  20. So I'm trying to learn coding again, here's something I came up with. Open to comments and stuff, please don't bash me too hard. This is so you can't attack people who are 15 levels or more below you.   else if($odata['level'] < ($ir['level'] - 15)) { print "<center><font color=grey><font size=5>You cannot attack someone 15 or more levels below you.</font></center>"; $h->endpage(); exit; }   And for 15 levels or above.   else if($odata['level'] > ($ir['level'] + 15)) { print "<center><font color=grey><font size=5>You cannot attack someone 15 or more levels above you.</font></center>"; $h->endpage(); exit; }
  21. Re: [V2] Annoucements Upgrade! Nice mod, will try it now.
  22. Re: [mccode v2] Donator and Non-Donator Lottery +1 for the effort, a bit too complicated for me :P
  23. Please rate /10, for my site, death-wars.
  24. Re: [mccode V2] Bank Investment Post a new reply with the new version.
  25. Re: Calling it a Day :) You'll be missed :( Have a good Xmas and a good new year Take care man.
×
×
  • Create New...