Jump to content
MakeWebGames

Draco

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by Draco

  1. Re: Contact Staff Form [FREE]   This is for players to mail staff. ------------------------------------ You did copy that code and saved it in a file as cstaff.php correct? If not find the line: <form action='cstaff.php' method='post'> Change cstaff.php to whatever you named the file ------------------------------------ As for v2 conversion.....I have never seen v2 code, can't help there...
  2. Re: is it me or? There is probably at least 100 different ways you code that and have the same identical output of the page.
  3. Draco

    PHP Configuration?

    Re: PHP Configuration? well problem fixed, guess since the panel sucks any edits i want to do I gotta do locally and upload them, no biggy I guess.... Delete old file, upload new, restart server. . . and its all good now!
  4. Draco

    PHP Configuration?

    Re: PHP Configuration?   Well according to the file list write permissions are setup for me, however I can't find anywhere to do so, tried using fopen and writing that way but access is denied because of the files location. Yeah the panel for it sucks, guess I'm gonna have to shell out some more cash for the cpanel version, cuz the current one sucks ass.
  5. Draco

    PHP Configuration?

    Re: PHP Configuration?   I know what I need to change, and what file. The problem is that it won't let me open the file and edit it live, nor will it let me download it, edit it, and then upload again. Wanted to know if there was any thing I could to change it via ssh conncetion. . . . hmmmmm. . . . I wonder if I can delete and create a new file. . . . . . . I'll try that out in a bit!
  6. Draco

    PHP Configuration?

    Anyone know how to configure PHP on a server. Mine has display_errors shut off and I want it on. Right now if there is a syntax error it just displays a blank page. Its on a Virtual Dedicated Server, I have SSH connection. .
  7. Copy the following and save it as cstaff.php This produces a form that has a select list of all members with a user_level greater than 1, the list is ordered by user_level. Subject of mail is set to "Staff contact form".   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($_POST['go']) { $to = (int) $_POST['staff']; $_POST['text'] = strip_tags($_POST['text']); $msg = str_replace(array("\n"),array(" "),htmlentities($_POST['text'])); mysql_query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'Staff contact form','$msg')",$c) or die(mysql_error()); print "Your mail to the selected staff member has been sent. Please allow 24 hours for a response to be returned. Thank You. "; } else { $q=mysql_query("SELECT * FROM users WHERE user_level > 1 ORDER BY user_level",$c); print "[b]Contact Staff[/b] Staff Member: "; while($z=mysql_fetch_array($q)) { print "{$z['username']}"; } print " Message to staff member: Send a mail to the selected staff member "; } $h->endpage(); ?>   *edit to change filename
  8. Re: Counting (nr game) 1350
  9. Re: Getting Rid of the 2.147 bil cap in MCcode   Well I'm not a game owner so I can't really give you a reason why, but I can speculate that over time it does become necceasry to go beyond the 2.xx billion limit.
  10. Re: Getting Rid of the 2.147 bil cap in MCcode bigint Integer (whole number) -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807 (with default attributes setting) Set the attributes to unsigned and it changes this to a range of 0 through 18,446,744,073,709,551,614
  11. Re: Glad to be here. . . Thank you for the warm welcome Scarlet. I know not all are under 20, i code for one whom is over 30. Like I've always thought, age is just a number that people use to judge you with. I have dealt with many individuals 10 years younger than me that blew me away with their knowledge and maturity. A number means nothing to me, nor should it mean anything to others, its about how you present yourself and the dedication to the task at hand.
  12. Re: EXP level goes past 100% and breaks design around this line somewhere. . . $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); I don't own a version of mc codes, but that line is from the header of mccodes lite, can somebody else give better detail?
  13. Re: Markets! I wrote this little bit to clear out a item market, could be used as a cron also   $q=mysql_query("SELECT * FROM itemmarket",$c); while($r=mysql_fetch_array($q)) { mysql_query("INSERT INTO inventory VALUES('',{$r['imITEM']},{$r['imADDER']},1,0)",$c) or die(mysql_error()); mysql_query("DELETE FROM itemmarket WHERE imID={$r['imID']}",$c); }
  14. Re: EXP level goes past 100% and breaks design correct, it will (should) always right itself with a few page rerfreshes
  15. Re: EXP level goes past 100% and breaks design in theory $expneeded shouldn't exceed 100%, it should always equal 100%. I may be wrong, but if $exp > $expneeded, then do the leveling stuff. . . with each level gained $expneeded raises for that account which creates a new 100% mark for that account. Just a note, i know $expneeded can be greater than 100 but I was using it like a percent. Basically calling $expneeded=100% of experience needed to level, so if $exp > $expneeded that means the $exp is greater than 100% of $expneeded. If I actually had the mc codes I could probably explain it more than what I did. It appears you have them so +1 on the assist ;) Both examples yield the same results, i think (not tested). Mine is just more generic, yours looks more workable on a live system
  16. Re: EXP level goes past 100% and breaks design yes it will, thats why I added that what i posted won't work just an eample for it work it would have to be more like the following if($exp > $expneeded) { $exp=$expneeded; } * This would return $exp as being 100% for displaying, like before this probably won't actually work on the game unless you change the variables to what you use and maybe some slight other modifications. It is just an example to point you in the right direction, hope it helps.
  17. Re: EXP level goes past 100% and breaks design for display purposes you could also do check for 100% for example if($exp>100%) { $exp=100%; } *not a working fix, just an example, this wouldn't actually change their experience, it would just prevent the bar from going over 100%
  18. Well been hanging around for alittle while now and thought I should finally post in here since I will probably be around more. I guess let me start with the obivous, I am here as a coder. I am not a professional, and don't claim to be. However I have been working with php/mysql for about 8 years now. I have wrote a few mods for the mc code system but will not be posting them, as they were written for a particular game, of which I don't know if its v1 or v2 since it was already heavily modified before I coded for it. Anyways it appears I was a late bloomer as it seems from reading that many here are under the age of 18, I started learning to code when I was 17. Now on to some personal information about me. I am 25 years old, happily married, and have 2 beautiful children. I work as a machine technician for one of the largest printing companies of the world, if I remember correctly I think they have 50+ plants world wide. The company prints everything from magizines, books, to direct mailings, they also do some web design work for large corporations (not postive on the last point, I just remeber reading someabout it on the corporate site). Enough about me I guess. . . no need to share my entire life story!
  19. Re: Jokes Fun in an elevator. . . . 1. Make race car noises when anyone gets on or off. 2. Blow your nose and offer to show the contents of your tissue to other passengers. 3. Grimace painfully while smacking your forehead and muttering, "Shut up, dammit, all of you just shut UP!" 4. Whistle the first seven notes of 'It's a Small World' incessantly. 5. Sell Girl Scout cookies. 6. On a long ride, crash from side to side as if you're on rough seas. 7. Shave. (Especially if you're a woman.) 8. Crack open your briefcase or purse, and while peering inside, ask: "Got enough air in there?" 9. Offer name tags to everyone getting on the elevator. Wear yours upside-down. 10. Stand silent and motionless in the corner, facing the wall, without getting off. 11. When arriving at your floor, grunt and strain to yank the doors open, then act embarrassed when they open by themselves. 12. Lean over to another passenger and whisper: "Noogie patrol coming!" 13. Greet everyone getting on the elevator with a warm handshake and ask them to call you, "Admiral". 14. One word: Flatulence! 15. On the highest floor, hold the door open and demand that it stay open until you hear the penny you dropped down the shaft go "plink" at the bottom. 16. Do Tai Chi exercises. 17. Stare, grinning, at another passenger for a while, and then announce, "I've got new socks on!" 18. When at least 8 people have boarded, moan from the back, "Oh, not now. Damn motion sickness!" 19. Give religious literature to each passenger. 20. Meow occasionally. 21. Bet the other passengers you can fit a quarter in your nose. 22. Frown and mutter "Gotta go, gotta go," then sigh and say, "oops!" 23. Show other passengers a wound and ask if it looks infected. 24. Sing, "Mary Had a Little Lamb," while continually pushing buttons. 25. Holler, "Chutes away!" whenever the elevator descends. 26. Walk on with a cooler that says "human head" on the side. 27. Stare at another passenger for a while, then announce, "You're one of THEM!" and move to the far corner of the elevator. 28. Burp, and then say "Mmmm...tasty!" 29. Leave a box between the doors. 30. Ask each passenger getting on if you can push the button for them. 31. Wear a puppet on your hand and make it talk to the other passengers. 32. Start a sing-along. 33. When the elevator is silent, look around and ask, "Is that your beeper?" 34. Play the harmonica. 35. Shadow box. 36. Say, "Ding!" at each floor. 37. Lean against the button panel. 38. Say, "I wonder what all these do," and push the red buttons. 39. Listen to the elevator walls with a stethoscope. 40. Draw a little square on the floor with chalk and announce to the other passengers that this is your "personal space". 41. Bring a chair along. 42. Take a bite of a sandwich and ask another passenger: "Wanna see wha in muh mouf?" 43. Blow spit bubbles. 44. Pull your gum out of your mouth in long strings. 45. Announce in a demonic voice: "I must find a more suitable host body." 46. Carry a blanket and clutch it protectively. 47. Make explosion noises when anyone presses a button. 48. Wear "X-Ray Specs" and leer suggestively at other passengers. 49. Stare at your thumb and say, "I think it's getting larger." 50. If anyone brushes against you, recoil and holler, "Bad touch!"
  20. Re: THIS OR THAT? Safe and or &
  21. Re: THIS OR THAT? both <table> or <div>
  22. Re: Guess the next poster Deathstar
×
×
  • Create New...