Jump to content
MakeWebGames

Ghetto

Members
  • Posts

    413
  • Joined

  • Last visited

    Never

Ghetto's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Counting (nr game) 1832
  2. Re: houses A few people's had the same problem before, If you have that crappy marrage installed remove it and see if that fixes it. That's been the problem with a few of people's game's.
  3. Re: TwIsTeD WiShEs ! Granted but everyone else dies and your all alone. I wish everyone could code so no one sold other people's mod's :-D
  4. Re: Guess the next poster Nope -matt-
  5. Ghetto

    New game

    Re: New game ^ Is a cheese lover. < Trying to stay away. v Is a n00b :lol:
  6. Re: 3 Word Game all around his
  7. Re: Counting (nr game) 1829
  8. Re: Counting (nr game) 1820
  9. Re: Event ADD This should work:   $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'])); $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)) { $db->query("INSERT INTO events VALUES ('',{$rm['userid']},unix_timestamp(),'0',\"Your gang's Organised Crime Succeeded. Go [url='oclog.php?ID=$i']here[/url] to view the details.\")"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } 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 events VALUES ('',{$rm['userid']},unix_timestamp(),'0',\"Your gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.\")"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } }
  10. Re: My Crons... Take a look around some of the oldish stuff. There are quite a few people out there :lol:.
  11. Re: My Crons... Well if he's put the error_reporting(E_ALL) before the include that would make the include line 3. Also if he did ass the error_reporting(E_ALL) he most probably forgot to put a ; on the end?
  12. Re: Guess the next poster Correct :wink: Nyna to be next.
  13. Ghetto

    WWII

    Re: WWII Italy - 19 Japan - 19 Great Britain - 42 United States - 21 Soviet Union - 20 France - 19
  14. Re: Counting (nr game) 1808
  15. Re: 3 Word Game out some lubricant
×
×
  • Create New...