Jump to content
MakeWebGames

Dave

Administrators
  • Posts

    3,368
  • Joined

  • Last visited

  • Days Won

    126

Everything posted by Dave

  1. Dave

    How would i......

    Re: How would i...... No need to reply i did some research and found the answer
  2. Dave

    How would i......

    Re: How would i...... That was quick thanks would it work if i did something like if (eregi('www.','.com' $string)) { // Code here } Or not?
  3. Dave

    How would i......

    Hello, Im working on a anti spam system but ive been searching on google for this but what im trying to do is something like below (Not actual coding trying to make it make sense) if($msg contains "www.") { //Report message as not sent } Does anyone now how to do this or can add some helpful input. Thanks in advance
  4. Recently ive found a company which are trying to get customer's by given away FREE domains. You can only have 1 domain (Which i already have) the site is http://itscoldoutside.com/ if you use it please tell me what you thought (PS. I dont have anything to do with them just love there free domain). As always you HAVE TO use real details for anyone who was thinking of doing fraud.
  5. Re: Houndbite steals mods He was acusing me of stealing the login i made for my game. But then he said that. I dont steal mods its unfair on who write the mods (Me being a coder myself). If you would like a full transcript of that convo PM to prove that im not lying
  6. Just thought i would alert the CE community that Houndbite (Sam Morgan is his real name) was accusing me of stealing the login i made from scratch and he said this :...The Unknown Killer...::: Love You Kayleigh (L)...: To the rape Van >>>>:..ON EVE KILLING NOOBS!!!!!!!!...:::: says: i steal my codes off other games then programe them to work on my game This is not edited view the screen shot below I just thought i should alert you to this.
  7. Im selling custom game logins. Basically you make a ruff drawing of what you want and i will try my best to make a very nice login. Prices will vary depending on the complexity of the job. Some of my work: As i make more i will post them as examples if i have permission for the person who i made it for. Any inquires please add me on MSN [email protected].
  8. Dave

    How would i shorten this

    Re: How would i shorten this Thank you LostOne
  9. I have made a new script yet at the top its quite chunky due to me using if's. Im sure there is a way to shorten it down. if($_GET['time'] == "") { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC")); } if($_GET['time'] == 1) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-1*60 ORDER BY laston DESC")); } if($_GET['time'] == 5) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-5*60 ORDER BY laston DESC")); } if($_GET['time'] == 10) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-10*60 ORDER BY laston DESC")); } if($_GET['time'] == 15) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC")); } if($_GET['time'] == 30) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-30*60 ORDER BY laston DESC")); } if($_GET['time'] == 60) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-60*60 ORDER BY laston DESC")); $_GET['time']=1; $unita="hours"; } if($_GET['time'] == 720) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-720*60 ORDER BY laston DESC")); $_GET['time']=12; $unita="hours"; } if($_GET['time'] == 1440) { $q=mysql_query(sprintf("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60 ORDER BY laston DESC")); $_GET['time']=1; $unita="days"; } Thanks in advanced.
  10. Re: Quote Mod Sure for preferences do: Add this to functions: case 'quote': change_quote(); break; case 'squote': submit_quote(); break; Then just before the $h->endpage(); ?> Add function change_quote() { global $ir,$c,$userid,$h,$db; print <<<EOF <h3>Quote Change</h3><form action='preferences.php?action=squote' method='POST'> <textarea rows=7 cols=40 name=quote>{$ir['quote']}</textarea> <input type='submit' value='Update'></form> EOF; } function submit_quote() { global $ir,$c,$userid,$h,$db; $_POST['quote'] == mysql_real_escape_string($_POST['quote']); $db->query(sprintf("UPDATE users SET quote='%s' WHERE userid=%s", $_POST['quote'], $userid)); print "Your quote has been updated. [url='preferences.php']Back[/url]"; } Hope it works havent tested it tho
  11. Re: Ignore User Mails [$10] Would be fast if fasterhostz was up been down for quite some time know
  12. Re: in need of a coder Me and toxication will. Add me on MSN [email protected]
  13. Dave

    ???!

    Re: ???! My Pc Supports its
  14. Re: Register.php create user on SMF Forum The easiest thing to do would be when in register you register the user in the game's database you also register the same use information in the SMF database ive never tried this but you will need to find out the string for inserting a new user into the SMF users database
  15. Re: Help Needed with Loan Officer Does your host have PHP errors turned on?
  16. Re: Probem :? please help... Hmmm weird. Have you installed that mod which displays a link when you want the level up by anychance?
  17. Re: Probem :? please help... function check_level() { global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*5.4); if($ir['exp'] >= $ir['exp_needed'] && $ir['level']!=70) { mysql_query("update users set upgrade=upgrade+1 where userid=$userid",$c); $expu=$ir['exp']-$ir['exp_needed']; $ir['exp']=$expu; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); mysql_query("UPDATE users SET exp=$expu where userid=$userid",$c); } } I beleive its an error with that maybe try replacing that with. function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } } I think this is your best bet. Tell me if it works or not
  18. Re: Count Backwards :D 4937 The end of the world.... ahhhhhh
  19. Re: Staff Password without sql's. (ANY VERSION) Simple solution if it doesn't work and its really obvious Add this to the top of sglobals.php instead of anyother file if($_SESSION['stafflogin'] == 0) { header('location: stafflogin.php'); } Then all the staff files use sglobals at the top of there page it works for me :)
  20. Re: Odd attack problem I think this is the problem of that everytime the user uses there weapon or attack turn it takes 50% energy so after 2 hits your out i remember this happened on my old game. Ill see if i can work out a fix
  21. Dave

    Request

    Re: Request This is generally simple theres a guide for the formulers somewhere on CE
  22. Re: [V2] Login Page Advanced Yes you never would be alowed in CC cpanel you just viewed the Source copy and pasted it and made it look a bit like PHP
  23. Re: [V2] Login Page Advanced The owners of criminal-corruption now use new images the one for this login is the original
  24. Re: [V2] Login Page Advanced This guy has stolen my login by simply taking the image badly editing it then viewing the HTML of the file. I made this for www.criminal-corruption.com you can ask Sexorcist the owner please if you could remove this thread and punish the user
  25. Im trying to think of some mods that have never been done before. If youve got an idea but cant code email me and ill create the mod and send it to you and then sell it on.
×
×
  • Create New...