Jump to content
MakeWebGames

Ghetto

Members
  • Posts

    413
  • Joined

  • Last visited

    Never

Everything posted by Ghetto

  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
  16. Re: Counting (nr game) 1806
  17. Re: Guess the next poster Nope, -Matt- Next.
  18. Re: [mccode] Advanced Warning System Then add under that: mysql_query("UPDATE users SET new_mail=new_mail+1 WHERE userid='{$_POST['userid']}'");
  19. Re: [mccode] Advanced Warning System Yeah, Find in warnings.php: mysql_query("INSERT INTO warnings VALUES ('','{$_POST['user']}','{$_POST['reason']}','$userid',unix_timestamp())",$c);   Add under that: mysql_query("INSERT INTO mail VALUES ('','0','0','{$_POST['user']}',unix_timestamp(),'Warning','You have recived a warning for: {$_POST['reason']}')",$c);
  20. Re: [mccode] Advanced Warning System This should work: $w=mysql_query("SELECT * FROM warnings WHERE user={$ir['userid']}",$c); print " <font color=red>Warnings: ".mysql_num_rows($w)."</font>";
  21. Re: Cyber Bank Problem V2 should be: global $db,$ir,$c,$userid,$h;
  22. Re: 2 Questions Simply put in header.php if($r['user_level']=2){$r['username']="<font color='COLOR'>".$r['username']."</font>";} if($r['user_level']=3){.... and so on   And mailbox.php for you to type the username in it would be: if($_POST['user1'] && $_POST['user2']) { die("Please do not select a contact AND enter a username, only do one. [url='mailbox.php']> Back[/url]"); } if(!$_POST['user1'] && !$_POST['user2']) { die("You must select a contact or enter a username. [url='mailbox.php']> Back[/url]"); } $sendto=($_POST['user1']) ? $_POST['user1'] : $_POST['user2']; $q=$db->query("SELECT userid FROM users WHERE username='{$sendto}'"); if($db->num_rows($q)==0) { die("You cannot send mail to nonexistant users. [url='mailbox.php']> Back[/url]"); } $to=$db->fetch_single($q); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$msg')");   And for userid it would simply be: $to= (int) $_POST['userid']; $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$msg')");
  23. Re: Upgrade Users Online Good little feature, But you missed 2 lines of code at the top.   $q=mysql_query("SELECT * FROM records WHERE recid=1"); $v=mysql_fetch_array($q);
  24. Re: Casino with slots [V2]   That is because you need to upload the pictures in a folder on you're sever called 'slots'. And i know it take the money, You also win money. It also uses one casino token per time you use the slots.
  25. Re: Counting (nr game) 1804
×
×
  • Create New...